Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Unit Testing Stored Procedures

I am new to working with SQL database but have been confronted with testing my database. For security reasons any queries or updates are done through stored procedures.

It was suggested to me by a peer to use stored procedures to test other stored procedures. Is this a good or bad solution to unit testing my stored procedures to ensure they are doing what they are suppose to be doing?

like image 658
Kairan Avatar asked Apr 20 '13 23:04

Kairan


1 Answers

I found an excellent solution using Visual Studio: Visual Studio Unit Testing

It allows you to create unit tests for SQL stored procedures, you can also populate the database using regular expressions - very cool stuff.

like image 197
Kairan Avatar answered Oct 10 '22 02:10

Kairan