Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Is there any testing tool available to test SQL proc / functions Expand / Collapse
Author
Message
Posted Sunday, April 17, 2011 11:33 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Wednesday, February 20, 2013 9:40 AM
Points: 358, Visits: 2,775
Hi friends,

Is there any testing tool available for the testing of SQL Stored procedures/functions? . Like the Nunit testing , NAND for .Net code I'm looking for some testing tool for SQL.

Thanks in advance.




Thanks & Regards,
MC
Post #1094724
Posted Tuesday, April 26, 2011 7:04 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, January 21, 2014 8:29 AM
Points: 244, Visits: 476
Hi,

we are testing our procedures with Visual Studio 2010. It has the Capability to write Unit tests for SQL procedures without programming C#.

First you need to create a database project in which you can import your database creation script to save the database model in the database project. After this you can go to the Schema View and choose the procedure for which you want to create an unit test and click Create Unit Test ... . Now you will be asked whether you want to create a new Unit Test Project or add it to an existing Project.

In this Unit Test Project VS will create a simple execute-statement for you proc and there you can add your specific unit testing code.

This is a really helpful thing if you use all the microsoft technologies. :)


Kind regards,

Patrick Fiedler
Consultant

Fiedler SQL Consulting

www.fiedler-sql-consulting.de
Post #1098597
Posted Thursday, April 28, 2011 1:34 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Friday, October 10, 2014 1:29 PM
Points: 1,310, Visits: 484
only4mithunc (4/17/2011)
Hi friends,

Is there any testing tool available for the testing of SQL Stored procedures/functions? . Like the Nunit testing , NAND for .Net code I'm looking for some testing tool for SQL.

Thanks in advance.



I've been playing with DBFit (http://www.sqlservercentral.com/articles/Testing/64636/) and I mostly like it.



Post #1100536
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse