I’m writing unit tests for stored procedures in VSTE for Database Professionals, and want to copy some already existing test cases that only need to be modified in a few places. Manually re-creating them would be very tedious. I couldn’t find a solution either on the web or in books. Any ideas are welcome.
I’m writing unit tests for stored procedures in VSTE for Database Professionals, and want
Share
It’s definitely not easy but here is the best method that I’ve found.
This method assumes that each test file contains 1 or more tests targeting the same database object. (Ex: PeopleTest.cs runs tests against the People table; spGetPeopleTest.cs targets stored procedure spGetPeople…) This makes the replace-all easier (for example you’d copy a PeopleTest.cs file and rename all “People” references to “Tasks”).