提交 e5c69e7d 编写于 作者: A Andy Gocke

Check for misplaced test assemblies

Updates BuildAndTest.proj to fail the build if test assemblies are
found outside of well-known test directories.
上级 42b5298d
......@@ -83,8 +83,15 @@
Exclude="$(OutputDirectory)\Roslyn.Interactive*" />
<CoreTestAssemblies Include="$(CoreClrTestDirectory)\$(IncludePattern)" />
<MisplacedTestAssemblies Include="$(OutputDirectory)\**\$(IncludePattern)"
Exclude="$(OutputDirectory)\$(IncludePattern);@(CoreTestAssemblies)" />
</ItemGroup>
<Error Condition="'@(MisplacedTestAssemblies->Count())' &gt; 0"
Text="Found test assemblies outside a well-known test directory:
@(MisplacedTestAssemblies, '%0a')" />
<Exec Command="$(CoreClrTestDirectory)\CoreRun.exe $(CoreClrTestDirectory)\xunit.console.netcore.exe @(CoreTestAssemblies, ' ') -parallel all -xml $(CoreClrTestDirectory)\TestResults.xml" />
<Exec Command="Binaries\$(Configuration)\RunTests.exe $(NuGetPackageRoot)\xunit.runner.console\$(XunitVersion)\tools $(RunTestArgs) @(TestAssemblies, ' ')" />
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册