Unit testing the data outputted by a stored procedure
Introduction The previous blog in this series gave a general introduction into taking a TDD approach when testing the expected data outputs for a new sproc. This blog will look into this in more area...
View ArticleUnit testing ‘Select’ stored procedures – part 4
Step 4 – unit testing the permission on a new sproc Permissions and security on SQL objects is an area often overlooked by many development teams but causes issues especially with deployments. Over...
View ArticleRunning DBTestUnit tests using MBUnit
The following gives a brief overview on how to use MBUnit (v 2.41.232.0) using the GUI or console. This version of MBUnit is the default testing framework up to version 0.4.0.428 of DBTestUnit. It...
View ArticleConfiguring your DBTestUnit test project
There are two places that need to be configured to allow tests to run: 1. The test dll config file. 2. The ‘dbInstance’ property set in the test classes. This blog will explain how to config each of...
View ArticleUsing ad hoc SQL commands in DBTestUnit tests
When writing database tests you will find that you need to excute a SQL statement as part of the test. For example, you might want to check the number of rows in a table before and after running an...
View ArticleUnit testing insert, delete and update stored procedures – intro
Up to now the previous blogs on unit testing sprocs have focused on those that output data – ‘Select’ sprocs. Over the next few weeks I intend to write a series of blogs that will look at testing...
View ArticleUnit testing update stored procedures – part 1
Introduction This is the first in a series of blogs that will look at unit testing an ‘update’ sproc using taking a TDD approach. Testing that the sproc exists and that it has it’s expected properties...
View ArticleUnit testing the functionality of an update stored procedures – part 2
Introduction The previous blog in this series looked at how to test that an update sproc existed and that its parameters and properties are as expected. This blog will look at testing the...
View ArticleUnit testing update sprocs where more that one table is updated
Introduction The previous blog showed how to unit test an update sproc. The sample sproc used was relatively straight forward and it only updated one base table. This blog will look at a slightly more...
View ArticleTest driven database development links
A couple of interesting articles about test driven database development and the database testing framework tsqlt – worth taking a look at. Test-driven Database Development – Why Bother? Test-driven...
View Article
More Pages to Explore .....