I want to create a unit testing framework which has its own front end gui. The testing framework in which I want to create, should be able to insert a visual studio solution along with a pre-created XML file which contains test data and expected results for each unit test. My question is how would I go about finding declarations of test classes in the existing projects in which I would import? The idea behind this is that this can be left running over night if needs be to import a large number of solutions, extract the test classes and run the unit tests on each class. Behind the scenes I would like to use Microsofts Visual Studio own unit testing framework, it is not possible for us to use nunit.
Whats the best way for me to go about this please?
It sounds like you should just use entirely normal unit test infrastructure – and just have a class library which makes it easy to perform the “process input, check output” step.
You shouldn’t have to reinvent the wheel of finding test classes etc… nor would I recommend creating your own frontend. By using the stock infrastructure, you’re likely to be able to save yourself a bunch of work – and that time can be invested in things like making failure messages really clear in a business-specific way.