Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an MS Test Runner that is faster

MS Test is killing me.

It is so slow compared to NUnit. I am stuck with it because I need to be able to get Test Results into TFS easy. (Plus it works better with Pex and I am using that too).

But I would really like it to go faster. Even just a bit faster would be nice.

Has anyone made a test runner for MS Test tests that goes faster than the one embedded in Visual Studio?

like image 556
Vaccano Avatar asked Sep 07 '10 17:09

Vaccano


People also ask

How can I run unit test faster?

Run your tests in parallel I've already covered this in another blog post “PARALLELISM: NUNIT VS. XUNIT” that running your tests in parallel can significantly improve the speed of your test runs. Basically this means all your tests will run "next to each other" instead of "one by one".

How long should a test suite take to run?

Some developers will be happy to run their extensive test suite in three minutes, while others want to go the more radical route and keep it under 60 seconds.

Which is better MSTest or XUnit?

XUnit vs. MSTest is concerned, the biggest difference between xUnit and the other two test frameworks (NUnit and MSTest) is that xUnit is much more extensible when compared to NUnit and MSTest. The [Fact] attribute is used instead of the [Test] attribute.

Is MSTest deprecated?

Test projects that are Coded UI tests or Web Load Tests are not compatible with MSTestV2. These project types have been deprecated.


2 Answers

The Gallio platform provides a test adapter for MSTest. You can then run your tests with any runner supporting Gallio, including built-in runners such as Echo or Icarus, and 3rd party runners such as TD.Net or R#.

The non-GUI test runners are usually slightly faster. Thus you may want to try Echo or the PoSh snap-in.

like image 120
Yann Trevin Avatar answered Sep 19 '22 07:09

Yann Trevin


You should be able to integrate NUnit into TFS with some custom build tasks (which some people have done). If you really wanted to get crazy you could transform NUnit test results into .TRX files and import them directly using the MSTEST command line options

like image 45
Josh Avatar answered Sep 21 '22 07:09

Josh