I was wondering if there are any tools similar to Pex that analyze T-SQL stored procedures and functions (instead of managed code) in order to generate meaningful and interesting input values for parameterized unit tests.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
AFAIK, no. I’ve never come across one and another look around has failed to throw one up (I did come across this article on the subject).
The only semi-relevent tools I can suggest are:
TSQLUnit – testing framework for TSQL
Red Gate’s Data Generator – for automated test data generation
Or, just writing tests in NUnit. You could create a basic data access layer in (e.g.) .NET, each method wrapping a call to a different sproc with the same parameters to pass through. You could then use a tool like Pex on that data access layer – a sort of proxy approach.