Executing Unit Tests in parallel on a multi-CPU/core machine
Here’s a brilliant use of the new parallel computing capabilities exposed in the .NET 4.0 framework and Visual Studio 2010 – the ability to run your Unit Tests in Parallel across multiple cores.
In Visual Studio 2010, Microsoft introduced the ability to run tests in parallel. Many machines today have multiple CPU’s or a CPU with multiple cores, so it makes sense that we may want our tests to run in such a way to use all the cores we have available on our machine.
This will effectively increase the number of tests running at the same time, which will reduce the time to run all the tests.
Check out this blog post for detail on how to set it up: http://blogs.msdn.com/vstsqualitytools/archive/2009/12/01/executing-unit-tests-in-parallel-on-a-multi-cpu-core-machine.aspx