views:

32

answers:

2

We have a build and deployment tool and as part of the tool before a deployment I want to validate that all of our unit tests run. I want to execute the Visual Studio unit tests using C# code if possible in some way. These tests were not built for nunit. Are there any good articles or ways of doing this that someone could recommend?

+2  A: 

Team Foundation Server (TFS) can run all your test projects as a part of the check-in and build process. Check out this other question, Running unit tests on Team Foundation Server (TFS) builds.

Jakob Gade
+1  A: 

If you just want to run your tests from the command line, there is MSTest.

You can also run your VS Unit Tests if your using Team Foundation Server (TFS) and its build agents. However this may not be possible or even desirable for you.

The TeamCity build server now also has built-in support for running MSTests.

tarn