Making unit tests in SQL Server a first class citizen with Red Gate’s

added by troyhunt
2/13/2012 2:10:42 AM

0 Kicks, 89 Views

One area of unit testing that’s always been a little tricky is testing anything with a database dependency. In part, this is because those tests often end up being dependent on the data itself which, of course, can be highly volatile. But it’s also philosophically challenged in that if a unit test is to assess a discrete unit of code on the application tier then it probably shouldn’t have dependencies on the data tier. This is where Red Gate’s SQL Test comes in. It’s entirely self-contained within SSMS and all it does is tests business logic in the database, just like those first class cousins in Visual Studio.


0 comments