Visual studio 是否有任何.runsettings文档?

Visual studio 是否有任何.runsettings文档?,visual-studio,unit-testing,continuous-integration,mstest,Visual Studio,Unit Testing,Continuous Integration,Mstest,我正在寻找与vstest一起使用的.runsettings文件的文档。有xsd吗 除了msdn文档中的几个示例文件外,我似乎找不到其他什么。Runsettings(VS2012)与testsettings(VS2010)类似,其中testsettings特定于为MSTest编写的测试。VS2012支持不同适配器的设置。因此,模式不是一个封闭的系统,因此XSD不全面 这篇MSDN文章列出了runsettings文件中元素的一些高级细节() 下面是那篇文章的一个片段 <?xml version

我正在寻找与vstest一起使用的.runsettings文件的文档。有xsd吗

除了msdn文档中的几个示例文件外,我似乎找不到其他什么。Runsettings(VS2012)与testsettings(VS2010)类似,其中testsettings特定于为MSTest编写的测试。VS2012支持不同适配器的设置。因此,模式不是一个封闭的系统,因此XSD不全面

这篇MSDN文章列出了runsettings文件中元素的一些高级细节()

下面是那篇文章的一个片段

<?xml version="1.0" encoding="utf-8"?>
<RunSettings>
   <!-- Configurations that affect the Test Framework -->
   <RunConfiguration>
     <MaxCpuCount>1</MaxCpuCount>
     <!-- Path relative to solution directory -->
     <ResultsDirectory>.\TestResults</ResultsDirectory>

     <!-- [x86] | x64  
       - You can also change it from menu Test, Test Settings, Default
         Processor Architecture -->
     <TargetPlatform>x86</TargetPlatform>

     <!-- Framework35 | [Framework40] | Framework45 -->
     <TargetFrameworkVersion>Framework40</TargetFrameworkVersion>

     <!-- Path to Test Adapters -->
     <TestAdaptersPaths>%SystemDrive%\Temp\foo;%SystemDrive%\Temp\bar</TestAdaptersPaths>
   </RunConfiguration>

   <!-- Configurations for data collectors -->
   <DataCollectionRunSettings>
     <DataCollectors>
        <DataCollector friendlyName="Code Coverage" uri="datacollector://Microsoft/CodeCoverage/2.0" assemblyQualifiedName="Microsoft.VisualStudio.Coverage.DynamicCoverageDataCollector, Microsoft.VisualStudio.TraceCollector, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
           <Configuration>
             <CodeCoverage>
               <ModulePaths>
                 <Exclude>
                    <ModulePath>.*CPPUnitTestFramework.*</ModulePath>
                 </Exclude>
               </ModulePaths>
             </CodeCoverage>
           </Configuration>
        </DataCollector>
     </DataCollectors>
  </DataCollectionRunSettings>

  <!-- Parameters used by tests at runtime -->
  <TestRunParameters>
    <Parameter name="webAppUrl" value="http://localhost" />
    <Parameter name="webAppUserName" value="Admin" />
    <Parameter name="webAppPassword" value="Password" />
  </TestRunParameters>

  <!-- Adapter Specific sections -->
  <!-- MSTest adapter -->
  <MSTest>
     <MapInconclusiveToFailed>True</MapInconclusiveToFailed>
     <CaptureTraceOutput>false</CaptureTraceOutput>
     <DeleteDeploymentDirectoryAfterTestRunIsComplete>False</DeleteDeploymentDirectoryAfterTestRunIsComplete>
     <DeploymentEnabled>False</DeploymentEnabled>
     <AssemblyResolution>
        <Directory Path>"D:\myfolder\bin\" includeSubDirectories="false"/>
     </AssemblyResolution>
  </MSTest>

</RunSettings>

1.
测试结果
x86
框架40
%SystemDrive%\Temp\foo;%SystemDrive%\Temp\bar
*CPPUnitTestFramework*
真的
假的
假的
假的
“D:\myfolder\bin\”includeSubDirectories=“false”/

我在这里找到了有关运行设置(特定于代码覆盖率)的更多信息:


这不是一个完整的答案,但很有帮助。链接后面的示例已断开。第54行有语法错误,我没有断开链接。我已经从该页面添加了一个片段供将来参考。请记住,对于
AssemblyResolution
目录,
path
属性必须是小写!这是重要的线索。