开发者

How can I run Microsoft Visual Studio Units Tests in an automated way using .NET code?

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开发者_Go百科 or ways of doing this that someone could recommend?


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜