开发者

Is there an MS Test Runner that is faster

开发者 https://www.devze.com 2023-01-15 08:20 出处:网络
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).

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 开发者_JAVA技巧tests that goes faster than the one embedded in Visual Studio?


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.


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


TestDriven.Net is probably the fastest one. Then goes msTest runner embedded into Visual Studio.

I found that ReSharper test runner is slower than built-in, especially if the solution is big. At the time I was researching, ReSharper seemed to do a full rebuild of the solution, where msTest was just building changed projects.

So your best choice would be TestDriven.Net


Albacore has an MSTest task.

https://github.com/derickbailey/Albacore/wiki/MSTest-Task

You could write a simple rake file that built your project and then ran the MSTest task.

My recommendation is that, initially, you write a project to only run the albacore MSTest task and time how long that takes.

PS: I wouldn't use Gallio because, in my experience, that test runner takes 6 seconds longer than TestDriven.net to run NUnit tests. PS 2: My real recommendation is to ditch MSTest for xUnit.net or NUnit

0

精彩评论

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