0
votes

We're using Microsoft TFS and the new builds to build our application and run unit and integration tests. We're now at the point where the unit tests can take 15 mins to run, and looking at bringing these times down.

This is my current set up in TFS Build:

enter image description here

What is the currently recommended way to run nunit tests in parallel as part of a TFS 2015 build?

1

1 Answers

1
votes

I asked this question on the MSDN forums too. From there:

You should be able to use this trick after you've upgraded tot[sic] 2015.1, though it may need adapter support from the NUnit team, not sure where that stands:

https://jessehouwing.net/vstest-enable-parallel-execution/

 <?xml version="1.0" encoding="utf-8"?> 
 <RunSettings>  
     <RunConfiguration>
         <!-- Add this line, default is 0, which makes it run single threaded -->
         <MaxCpuCount>8</MaxCpuCount>   
    </RunConfiguration> 
</RunSettings>

Original Link

I haven't been able to verify this yet as we need to first upgrade to TFS2015.1 from 2015.