msbuild单元测试-如何单独运行?
目前,我有一个msbuild脚本,它扫描测试DLL并使用msbuild/Test运行一次msbuild单元测试-如何单独运行?,msbuild,Msbuild,目前,我有一个msbuild脚本,它扫描测试DLL并使用msbuild/Test运行一次 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="RunMSTest"> <ItemGroup> <TestAssemblies Include="**\bin\*Test*.dll"/> </ItemGroup> <Tar
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="RunMSTest">
<ItemGroup>
<TestAssemblies Include="**\bin\*Test*.dll"/>
</ItemGroup>
<Target Name="RunMSTest">
<Exec Condition=" '@(TestAssemblies)' != ''"
Command="Mstest.exe /nologo /resultsfile:TestResults.trx @
(TestAssemblies ->'/testcontainer:"%(RecursiveDir)%(Filename)%(Extension)"', ' ')"
/>
</Target>
</Project>
理想情况下,我希望每个测试DLL都有一个单独的mstest.exe,并将文件名保存到TestResults%FileName.trx,以减少CI服务器的负载
您是否尝试过在TestAssemblies上进行批处理-例如,使用%TestAssemblies代替@TestAssemblies