How to run unit tests (MSTest) in parallel?

前端 未结 6 2036
独厮守ぢ
独厮守ぢ 2020-11-29 02:19

I am looking for ways to run test suites in parallel.

I am aware of .testrunconfig setting. This allows you to multiplex on the numb

6条回答
  •  春和景丽
    2020-11-29 02:45

    Visual Studio 2015 Update 1 adds this. https://docs.microsoft.com/visualstudio/releasenotes/vs2015-update1-vs#misc

    For Update 2, there is a UI toggle button in the toolbar at the top of the Test Explorer pane (between the 'grouping' and 'search' boxes).

    For Update 1, Set the following in the .runsettings

    
    
      
        0
       
    
    

    The value for MaxCpuCount has the following semantics:

    • ‘n’ (where 1 <= n <= number of cores) : upto ‘n’ processes will be launched.

    • ‘n’ of any other value : The number of processes launched will be as many as the available cores on the machine.

提交回复
热议问题