By default, Visual studio will run tests in 1 thread. I want to run it in parallel. I have a test.runsettings file with the code below:
<?xml version="1.0" encoding="utf-8"?> <RunSettings> <RunConfiguration> <MaxCpuCount>4</MaxCpuCount> </RunConfiguration> </RunSettings>
When I rebuild the solution or run the tests, I get the error below in the OUTPUT window:
Invalid settings 'RunConfiguration'. Unexpected XmlElement: 'MaxCpuCount'.
I copied the code for test.runsettings from the MSDN doc and selected this file from the VS test menu.
I am using Visual Studio 2015.
The problem is resolved. He will be working on updating VS 2015 1 and +.
Thank you for your help.
c # testing visual-studio-2015 mstest
Jamaxack
source share