Ignacio Soler Garcia
Ignacio Soler Garcia

Reputation: 21855

How to execute tests in parallel using runsettings file on VS2013

we have moved from VS2010 to VS2013 environment. Our solution has over 5K unit tests and on VS2010 they took about 5 minutes while on VS2013 they are taking about 20 minutes.

We saw that there is an issue using the testsettings file as it configures VS2013 to use the former test framework so we moved it to a runsettings file which in facts solves some problems we had on the transition.

The main think right now is that we cannot find how to configure VS2013 to execute the tests in parallel. On the former VS we had the <Execution parallelTestCount="0"> setting which seems to be non available on the runsettings file.

Summarizing, how can we run tests in parallel using a runsettings file so we use the newer framework?

Thanks.

Upvotes: 8

Views: 2269

Answers (1)

Valentin
Valentin

Reputation: 11

You use ?

You can force VS2013 to use the 2010-2013 test settings file. You can add FileName.testsettings into the 2013 .runsettings file.

<MSTest>
      <CaptureTraceOutput>True</CaptureTraceOutput>
      <DeploymentEnabled>false</DeploymentEnabled>
      <SettingsFile>FILENAME.testsettings</SettingsFile>
      <ForcedLegacyMode>True</ForcedLegacyMode>
</MSTest>

Upvotes: 1

Related Questions