Ahmed Salijee

Running VSTS Tests without a test list

I have received this question a couple of times recently. When setting up a Team Build you have the option of running tests as part of the build. For Team Build to run the tests though the tests need to be in a test list. This has 2 issues. The first one is just the administration of making sure that you assign your tests to lists. The second one is the more problematic one. The test list feature only exists in the Tester SKU. So a developer with the developer edition would have try and mess with the XML in the .vsmdi file and that is not fun.

The good news. Buck Hodges has posted an MSBuild task that allows to specify the assemblies that contain the tests. So if you simply want to say "run all my unit tests" go check this out.