views:

337

answers:

3

Hi.

Does anyone know if there is a way to run different [TestMethods] in Visual studio in parallel?

A: 

NUnit 2.5 has an option to support running unit tests in parallel. That has nothing to do with the unit test framework that's built into VS, but it is possible to run NUnit tests inside VS, with the right plugin.

Joel Mueller
A: 

MSTest in Visual Studio runs unit tests in parallel. When running tests VSTestHost (process that runs the unit tests) executes each unit test on a separate thread.

Doanair
Unit tests are run on different threads in a non-deterministic order, but they are always sequentially ordered. http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/84afa304-e652-4aba-98c2-be26dea928e4/
280Z28
+2  A: 

The Team Test team published a blog post about executing unit tests in parrallel on a multi-cpu/core machine few days ago. You can read the information you're looking for here :

http://blogs.msdn.com/vstsqualitytools/archive/2009/12/01/executing-unit-tests-in-parallel-on-a-multi-cpu-core-machine.aspx

Enjoy!

PatriceVB
Fraking cool - Perfect for the 8 core workstation. Unit tests take entirely too long.
Peter LaComb Jr.