Can you create "Dynamic" tests with MS Test Suite?

I use QUnit to test jQuery and I have Watin to load the test page and analyze the test results, but I wonder if there is a way to dynamically generate tests from the page using MS Test Suite instead of writing a test function for each test?

I'm just trying to reduce the amount of code written

+4
source share
2 answers

I'm not sure how you use / run your tests, but I'm sure you can use some code generator like t4 in visual studio to write these tests for you.

+2
source

You can do this using a special type of test that will know how to list tests dynamically in some way. You can associate the file extension with TiP (test information provider), which when downloading this file will use the data there to return the test suite.

+2
source

All Articles