SQL Server Database Unit Testing with dbForge Unit Test

SQL Server Database Unit Testing with dbForge Unit Test


See how to perform automated unit testing in SSMS with SQL Unit Testing Tool by Devart.
The dbForge SQL database unit testing tool is based on the open-source tSQLt framework. To run tests, you need to install the tSQLt Framework.
In Test List Manager, you can see all created tests and run them for execution. You can launch object testing in isolation without adding extra data for IDs. Tests won't affect the actual database and won't need clean-up code. The tool also includes the tSQLt_Example database you can use for getting started with Unit Tests. You can run multiple SQL Server unit tests at once in a few clicks.

Timestamps:
00:00 Introduction
00:12 How to perform automated unit testing in SSMS with dbForge Unit Testing
01:02 Manage all created tests in Test List Manager
01:35 Use tSQLt_Example database to get started with Unit Tests

Find more information about SQL Unit Testing Tool here: https://www.devart.com/dbforge/sql/unit-test/
Download a free 30-day trial of dbForge Unit Test to find out how easy and painless the database unit testing can be: https://www.devart.com/dbforge/sql/unit-test/download.html

#UnitTesting
#SQLServer
#SQLTools
#SQL
#dbForge
#Devart
Closed Caption:

dbForge Unit Test by Devart allows you to write stable and reliable code which
you can properly regression-test at the unit level.
Run Unit Test in SQL
Server Management Studio.
Select a database you want to run tests against.
To run tests, you need to install the tSQLt Framework.
As soon as the tSQLt
Framework is installed, you can start creating tests.
Right-click a
required database, click “Add New Test” on the shortcut menu, and specify the test
name and the class name.
After you specify the test attributes in the
Wizard, a new SQL file opens. In the file, create a test stating that the
ProductionNew table exists in the database.
The test has been successfully created.
In the same way, create two more tests.
Create a test that checks the
correctness of the thrown error message.
Then, create a test for generation and
testing of isolated objects that are copies of the database objects.
When the
tests have been set up, open Test List Manager to help you with the test
management and running.
In Test List Manager, we can see all the tests we created.
Run all tests for execution.
As we can see, the test that should check
the existence of the ProductionNew table has failed.
We need to make the
proper corrections to the database and add the missing object.
Run all tests for execution again.
Now all the tests have been passed successfully
after the fixes we made to the database.
dbForge Unit Test also includes the tsequelt_Example
database you can use for getting started with Unit Tests.
Download a free 30-day trial of dbForge Unit Test to find out how easy
and painless the database unit testing can be.

Video Length: 01:58
Uploaded By: Devart
Published: 11/6/2019
View Count: 3,248

Related Software Products
dbForge SQL Tools
dbForge SQL Tools

Published By:
Devart

Description:
dbForge SQL Tools: 15 SQL Server Tools That Plug Into SSMS dbForge SQL Tools is Devart's bundle of 15 apps and SSMS add-ins for Microsoft SQL Server and Azure SQL, covering code completion, schema and data comparison, source control, test data, unit tests, index maintenance and CI/CD. It runs on Windows and costs $699.95 a year for the Professional edition at checkout (Standard $469.95, Enterprise $749.95), with a free 30-day trial. If you spend...


Related Videos
Intellisense, SQL Formatting, Code Refactoring in SSMS - SQL Complete Tutorial
Intellisense, SQL Formatting, Code Refactoring in SSMS - SQL Complete Tutorial

Video Length: 03:41
Uploaded By: Devart (6/17/2015)
View Count: 27,004

dbForge SQL Tools – 15 essential SQL Server development tools in one package
dbForge SQL Tools – 15 essential SQL Server development tools in one package

Video Length: 10:01
Uploaded By: Devart (11/3/2021)
View Count: 5,380

Database version control with dbForge Source Control for SQL Server
Database version control with dbForge Source Control for SQL Server

Video Length: 02:19
Uploaded By: Devart (2/27/2021)
View Count: 4,714

Copyright © 2026, Ivertech. All rights reserved.