40 строки
1.8 KiB
XML
40 строки
1.8 KiB
XML
<Project>
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.props))\Directory.Build.props" />
|
|
|
|
<ItemGroup>
|
|
<Project Include="$(MSBuildThisFileDirectory)**\*.csproj" Exclude="$(MSBuildThisFileDirectory)Microsoft.ML.NightlyBuild.Tests\Microsoft.ML.NightlyBuild.Tests.csproj"/>
|
|
<Project Include="$(MSBuildThisFileDirectory)**\*.fsproj" />
|
|
</ItemGroup>
|
|
|
|
<Target Name="RunTests">
|
|
<Message Importance="High" Text="Running tests ..." />
|
|
<MSBuild Condition="'$(Coverage)' == 'true'"
|
|
Targets="VSTest"
|
|
Projects="@(Project)"
|
|
Properties="VSTestNoBuild=true;VSTestBlame=true;VSTestCollect=XPlat Code Coverage;VSTestSetting=$(MSBuildThisFileDirectory)\coverlet.runsettings" />
|
|
<MSBuild Condition="'$(Coverage)' == 'false'"
|
|
Targets="VSTest"
|
|
Projects="@(Project)"
|
|
Properties="VSTestNoBuild=true;VSTestBlame=true" />
|
|
</Target>
|
|
|
|
<Target Name="RunCITests">
|
|
<Message Importance="High" Text="Running CI tests ..." />
|
|
<MSBuild Targets="VSTest"
|
|
Projects="@(Project)"
|
|
Properties="VSTestNoBuild=true;VSTestBlame=true;VSTestTestCaseFilter=Category!=SkipInCI" />
|
|
</Target>
|
|
|
|
<Target Name="RunSpecificTests">
|
|
<Message Importance="High" Text="Running Specific tests ..." />
|
|
<MSBuild Targets="VSTest"
|
|
Projects="@(Project)"
|
|
Properties="VSTestNoBuild=true;VSTestBlame=true;VSTestTestCaseFilter=Category=RunSpecificTest" />
|
|
</Target>
|
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), Directory.Build.targets))\Directory.Build.targets" />
|
|
|
|
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), dir.traversal.targets))\dir.traversal.targets" />
|
|
|
|
</Project>
|