forked from Nelibur/Nelibur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFactTest.msbuild
21 lines (18 loc) · 1.06 KB
/
FactTest.msbuild
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0" DefaultTargets="RunUnitTests">
<PropertyGroup>
<Configuration Condition="'$(Configuration)' == ''">Release</Configuration>
<XUnitMsbuildPath Condition="'$(XUnitMsbuildPath)' == ''">$(MSBuildProjectDirectory)\packages\xunit.1.9.2\lib\net20</XUnitMsbuildPath>
<FactTestsPath Condition="'$(FactTestsPath)' == ''">$(MSBuildProjectDirectory)\Out\$(Configuration)\UnitTests</FactTestsPath>
</PropertyGroup>
<UsingTask AssemblyFile="$(XUnitMsbuildPath)\xunit.runner.msbuild.dll" TaskName="Xunit.Runner.MSBuild.xunit" />
<Target Name="RunUnitTests" DependsOnTargets="RunXUnitTests" />
<Target Name="RunXUnitTests">
<ItemGroup>
<XUnitAssemblies Include="$(FactTestsPath)\UnitTests.dll" />
</ItemGroup>
<xunit Assemblies="@(XUnitAssemblies)"
Html="$(FactTestsPath)\FactTestResults.html"
WorkingFolder="$(XUnitMsbuildPath)"/>
</Target>
</Project>