1 <?xml version="1.0" encoding="utf-8"?>
2 <Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
4 <UsingTask AssemblyFile="$(PackagesDir)xunit.runner.msbuild\$(XunitPackageVersion)\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" />
7 <_SkipTestAssemblies Include="$(SkipTestAssemblies)" />
11 <TestAssemblyDir Condition="'$(TestAssemblyDir)' == ''">$(BaseOutputPathWithConfig)\tests\</TestAssemblyDir>
12 <__TestRunHtmlLog Condition="'$(__TestRunHtmlLog)' == ''">$(__LogsDir)\TestRun.html</__TestRunHtmlLog>
13 <__TestRunXmlLog Condition="'$(__TestRunXmlLog)' == ''">$(__LogsDir)\TestRun.xml</__TestRunXmlLog>
15 <Target Name="FindTestDirectories">
17 <AllTestAssemblies Include="$(BaseOutputPathWithConfig)\*\*.XUnitWrapper.dll" />
18 <TestAssemblies Include="@(AllTestAssemblies)" Exclude="@(_SkipTestAssemblies -> '$(TestAssemblyDir)%(Identity)\%(Identity).XUnitWrapper.dll')" />
21 <Error Text=" The wrappers must be compiled and placed at $(TestAssemblyDir)\*\ before they can be run, Do a clean Test Run"
22 Condition="'@(AllTestAssemblies)' == ''" />
24 <Message Text= "AllTestAssemblies= @(AllTestAssemblies)"/>
25 <Message Text= "TestAssemblies= @(TestAssemblies)"/>
26 <Message Text= "_SkipTestAssemblies= @(_SkipTestAssemblies -> '$(TestAssemblyDir)%(Identity)\%(Identity).XUnitWrapper.dll')"/>
30 AssemblyFile="$(SourceDir)\packages\xunit.runner.msbuild\$(XunitPackageVersion)\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.dll"
31 TaskName="Xunit.Runner.MSBuild.xunit" />
33 <Target Name="RunTests"
34 DependsOnTargets="FindTestDirectories"
35 Condition="'$(SkipTests)' != 'True'">
39 <ExcludeTraits Condition="'$(ExcludeTraits)'==''">category=outerloop;category=failing</ExcludeTraits>
40 <ParallelRun Condition="'$(ParallelRun)'==''">true</ParallelRun>
43 <IncludeTraitsItems Include="$(IncludeTraits)" />
44 <ExcludeTraitsItems Include="$(ExcludeTraits)" />
47 <xunit Assemblies="@(TestAssemblies)"
48 ParallelizeAssemblies="$(ParallelRun)"
49 ParallelizeTestCollections="$(ParallelRun)"
50 Html="$(__TestRunHtmlLog)"
51 Xml="$(__TestRunXmlLog)"
52 IncludeTraits="@(IncludeTraitsItems)"
53 ExcludeTraits="@(ExcludeTraitsItems)" />