SQL-Unit
1.6
|
SQL-Unit is a unit testing framework for SQL Server (i.e. T-SQL).
The following example shows a simple standalone test. T-SQL doesn't support attributes and so we have to annotate the name instead with a string. In SQL-Unit the form "_@attrib@_" pair should be considered synonmous with "[attrib]" in NUnit; hence the attribute "_@Test@_" defines a test.
create procedure test._@Test@_Example as declare @actual varchar(100) = '42'; exec ssunit.AssertStringEqualTo '42', @actual; go