diff options
author | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
---|---|---|
committer | Jiyoung Yun <jy910.yun@samsung.com> | 2016-11-23 19:09:09 +0900 |
commit | 4b4aad7217d3292650e77eec2cf4c198ea9c3b4b (patch) | |
tree | 98110734c91668dfdbb126fcc0e15ddbd93738ca /tests/tests.targets | |
parent | fa45f57ed55137c75ac870356a1b8f76c84b229c (diff) | |
download | coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.gz coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.tar.bz2 coreclr-4b4aad7217d3292650e77eec2cf4c198ea9c3b4b.zip |
Imported Upstream version 1.1.0upstream/1.1.0
Diffstat (limited to 'tests/tests.targets')
-rw-r--r-- | tests/tests.targets | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/tests.targets b/tests/tests.targets new file mode 100644 index 0000000000..56c6c5d711 --- /dev/null +++ b/tests/tests.targets @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + + <UsingTask AssemblyFile="$(PackagesDir)xunit.runner.msbuild\2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" /> + + <ItemGroup> + <_SkipTestAssemblies Include="$(SkipTestAssemblies)" /> + </ItemGroup> + + <PropertyGroup> + <TestAssemblyDir Condition="'$(TestAssemblyDir)' == ''">$(BaseOutputPathWithConfig)\tests\</TestAssemblyDir> + <__TestRunHtmlLog Condition="'$(__TestRunHtmlLog)' == ''">$(__LogsDir)\TestRun.html</__TestRunHtmlLog> + <__TestRunXmlLog Condition="'$(__TestRunXmlLog)' == ''">$(__LogsDir)\TestRun.xml</__TestRunXmlLog> + </PropertyGroup> + <Target Name="FindTestDirectories"> + <ItemGroup> + <AllTestAssemblies Include="$(BaseOutputPathWithConfig)\*\*.XUnitWrapper.dll" /> + <TestAssemblies Include="@(AllTestAssemblies)" Exclude="@(_SkipTestAssemblies -> '$(TestAssemblyDir)%(Identity)\%(Identity).XUnitWrapper.dll')" /> + </ItemGroup> + + <Error Text=" The wrappers must be compiled and placed at $(TestAssemblyDir)\*\ before they can be run, Do a clean Test Run" + Condition="'@(AllTestAssemblies)' == ''" /> + + <Message Text= "AllTestAssemblies= @(AllTestAssemblies)"/> + <Message Text= "TestAssemblies= @(TestAssemblies)"/> + <Message Text= "_SkipTestAssemblies= @(_SkipTestAssemblies -> '$(TestAssemblyDir)%(Identity)\%(Identity).XUnitWrapper.dll')"/> + </Target> + + <UsingTask + AssemblyFile="$(SourceDir)\packages\xunit.runner.msbuild\2.1.0\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.dll" + TaskName="Xunit.Runner.MSBuild.xunit" /> + + <Target Name="RunTests" + DependsOnTargets="FindTestDirectories" + Condition="'$(SkipTests)' != 'True'"> + + + <PropertyGroup> + <ExcludeTraits Condition="'$(ExcludeTraits)'==''">category=outerloop;category=failing</ExcludeTraits> + <ParallelRun Condition="'$(ParallelRun)'==''">true</ParallelRun> + </PropertyGroup> + <ItemGroup> + <IncludeTraitsItems Include="$(IncludeTraits)" /> + <ExcludeTraitsItems Include="$(ExcludeTraits)" /> + </ItemGroup> + + <xunit Assemblies="@(TestAssemblies)" + ParallelizeAssemblies="$(ParallelRun)" + ParallelizeTestCollections="$(ParallelRun)" + Html="$(__TestRunHtmlLog)" + Xml="$(__TestRunXmlLog)" + IncludeTraits="@(IncludeTraitsItems)" + ExcludeTraits="@(ExcludeTraitsItems)" /> + + </Target> + +</Project> |