| 1 |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 2 |
|
| 3 |
<UsingTask AssemblyFile="$(PackagesDir)xunit.runner.msbuild\$(XunitPackageVersion)\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" /> |
| 4 |
|
| 5 |
<ItemGroup> |
| 6 |
<_SkipTestAssemblies Include="$(SkipTestAssemblies)" /> |
| 7 |
</ItemGroup> |
| 8 |
|
| 9 |
<PropertyGroup> |
| 10 |
<TestAssemblyDir Condition="'$(TestAssemblyDir)' == ''">$(XunitTestBinBase)\tests\</TestAssemblyDir> |
| 11 |
<__TestRunHtmlLog Condition="'$(__TestRunHtmlLog)' == ''">$(__LogsDir)\TestRun.html</__TestRunHtmlLog> |
| 12 |
<__TestRunXmlLog Condition="'$(__TestRunXmlLog)' == ''">$(__LogsDir)\TestRun.xml</__TestRunXmlLog> |
| 13 |
</PropertyGroup> |
| 14 |
<Target Name="FindTestDirectories"> |
| 15 |
<ItemGroup> |
| 16 |
<AllTestAssemblies Include="$(XunitTestBinBase)\*\*.XUnitWrapper.dll" /> |
| 17 |
<TestAssemblies Include="@(AllTestAssemblies)" Exclude="@(_SkipTestAssemblies -> '$(TestAssemblyDir)%(Identity)\%(Identity).XUnitWrapper.dll')" /> |
| 18 |
</ItemGroup> |
| 19 |
|
| 20 |
<Error Text=" The wrappers must be compiled and placed at $(TestAssemblyDir)\*\ before they can be run, Do a clean Test Run" |
| 21 |
Condition="'@(AllTestAssemblies)' == ''" /> |
| 22 |
|
| 23 |
<Message Text= "AllTestAssemblies= @(AllTestAssemblies)"/> |
| 24 |
<Message Text= "TestAssemblies= @(TestAssemblies)"/> |
| 25 |
<Message Text= "_SkipTestAssemblies= @(_SkipTestAssemblies -> '$(TestAssemblyDir)%(Identity)\%(Identity).XUnitWrapper.dll')"/> |
| 26 |
</Target> |
| 27 |
|
| 28 |
<UsingTask |
| 29 |
AssemblyFile="$(SourceDir)\packages\xunit.runner.msbuild\$(XunitPackageVersion)\build\portable-net45+win8+wp8+wpa81\xunit.runner.msbuild.dll" |
| 30 |
TaskName="Xunit.Runner.MSBuild.xunit" /> |
| 31 |
|
| 32 |
<Target Name="RunTests" |
| 33 |
DependsOnTargets="FindTestDirectories" |
| 34 |
Condition="'$(SkipTests)' != 'True'"> |
| 35 |
|
| 36 |
|
| 37 |
<PropertyGroup> |
| 38 |
<ExcludeTraits Condition="'$(ExcludeTraits)'==''">category=outerloop;category=failing</ExcludeTraits> |
| 39 |
<ParallelRun Condition="'$(ParallelRun)'==''">true</ParallelRun> |
| 40 |
</PropertyGroup> |
| 41 |
<ItemGroup> |
| 42 |
<IncludeTraitsItems Include="$(IncludeTraits)" /> |
| 43 |
<ExcludeTraitsItems Include="$(ExcludeTraits)" /> |
| 44 |
</ItemGroup> |
| 45 |
|
| 46 |
<xunit Assemblies="@(TestAssemblies)" |
| 47 |
ParallelizeAssemblies="$(ParallelRun)" |
| 48 |
ParallelizeTestCollections="$(ParallelRun)" |
| 49 |
Html="$(__TestRunHtmlLog)" |
| 50 |
Xml="$(__TestRunXmlLog)" |
| 51 |
IncludeTraits="@(IncludeTraitsItems)" |
| 52 |
ExcludeTraits="@(ExcludeTraitsItems)" /> |
| 53 |
|
| 54 |
</Target> |
| 55 |
|
| 56 |
</Project> |