VS2012 Device Tests: How to Change the Location of the TestResults Folder

I have the entire Unit Test project in the folder under my solutions folder and would like the TestResults folder in the same folder as the test projects to be in the solutions directory.

I found that this can be done using a test video file: How to specify a location for Unit Test results in VS 2010?

but I also read that with VS2012 you should no longer use test configuration files. In fact, VS2012 does not create it.

Is there another way?

+5
source share
2 answers

You can create a small RunSettigs file that looks like

  <RunSettings>
     <RunConfiguration>
        <ResultsDirectory>e:\myResultsFolder</ResultsDirectory>
     </RunConfiguration>
  </RunSettings>

Test- > TestSettings β†’ "Select Test Settings" .

http://msdn.microsoft.com/en-us/library/jj635153.aspx.

+2

"TestSettings", .runsettings , Visual Studio: http://msdn.microsoft.com/en-us/library/vstudio/jj635153.aspx

.runsettings :

<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
  <RunConfiguration>
    <ResultsDirectory>.\Visual Studio Test Results</ResultsDirectory>
  </RunConfiguration>
</RunSettings>

, , ResultsDirectory (, ), .runsettings. , Visual Studio, $(SolutionDir), . , .runsettings .

, .runsettings .testsettings Visual Studio, : http://msdn.microsoft.com/en-us/library/vstudio/ee256991.aspx

.testsettings, MSTest . .

+1

All Articles