Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will Team Foundation Build Server execute UnitTests sequentially or in parallel

We use TFS 2010 and Automated builds. We also make use of MSTests.

I would like some concrete information about the build server's test execution method. Will the test engine (on build server) run the unit tests sequentially or in parallel?

like image 420
Numan Avatar asked Jan 06 '11 18:01

Numan


People also ask

Do unit tests run in parallel C#?

Unit tests run one at a time. There is no parallelism. See attached screenshot. We have directed your feedback to the appropriate engineering team for further evaluation.

How do I run a test case in Visual Studio?

To run all the tests in a default group, choose the Run icon and then choose the group on the menu. Select the individual tests that you want to run, open the right-click menu for a selected test and then choose Run Selected Tests (or press Ctrl + R, T).


1 Answers

By default it will run them sequentially. You can customize the build workflow by adding a Parallel activity and running different sets of tests in each. Or if you want to parallelize the test run across multiple build machines you can have the build use multiple RunOnAgent activities to do so (http://blogs.msdn.com/b/jimlamb/archive/2010/09/14/parallelized-builds-with-tfs2010.aspx).

Note: If you execute the tests across multiple test runs you will end up with multiple test reports (.trx files) that will not be merged together without further customization of the build.

like image 55
Dylan Smith Avatar answered Oct 10 '22 08:10

Dylan Smith