mirror of https://github.com/dotnet/runtime
41 lines
2.4 KiB
XML
41 lines
2.4 KiB
XML
<Project>
|
|
<PropertyGroup>
|
|
<TestProjectName Condition="'$(TestProjectName)' == ''">$(MSBuildProjectName)</TestProjectName>
|
|
<TestFramework Condition="'$(TestFramework)' == ''">xunit</TestFramework>
|
|
<!-- Implicit test build support when invoking the Test target on the project directly. -->
|
|
<TestDependsOn Condition="'$(TestNoBuild)' != 'true' and '$(BuildAllProjects)' != 'true'">Build</TestDependsOn>
|
|
<TestDependsOn>$(TestDependsOn);GenerateRunScript;RunTests</TestDependsOn>
|
|
<VSTestNoLogo>true</VSTestNoLogo>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<!-- Default and user defined categories -->
|
|
<_withCategories Condition="'$(WithCategories)' != ''">;$(WithCategories.Trim(';'))</_withCategories>
|
|
<_withoutCategories Condition="'$(WithoutCategories)' != ''">;$(WithoutCategories.Trim(';'))</_withoutCategories>
|
|
|
|
<TestScope Condition="'$(TestScope)' == '' and '$(Outerloop)' == 'true'">all</TestScope>
|
|
<_withCategories Condition="'$(TestScope)' == 'outerloop'">$(_withCategories);OuterLoop</_withCategories>
|
|
<_withoutCategories Condition="'$(ArchiveTests)' == 'true'">$(_withoutCategories);IgnoreForCI</_withoutCategories>
|
|
<_withoutCategories Condition="'$(TestScope)' == '' or '$(TestScope)' == 'innerloop'">$(_withoutCategories);OuterLoop</_withoutCategories>
|
|
<_withoutCategories Condition="!$(_withCategories.Contains('failing'))">$(_withoutCategories);failing</_withoutCategories>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup Condition="'$(TargetsMobile)' == 'true'">
|
|
<!-- Test runners are built as part of libs.pretest so we need to use libraries configuration -->
|
|
<MobileRunnersDirSuffix>$(NetCoreAppCurrent)-$(Configuration)</MobileRunnersDirSuffix>
|
|
<AppleTestRunnerDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AppleTestRunner', '$(MobileRunnersDirSuffix)'))</AppleTestRunnerDir>
|
|
<AndroidTestRunnerDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsBinDir)', 'AndroidTestRunner', '$(MobileRunnersDirSuffix)'))</AndroidTestRunnerDir>
|
|
|
|
<RuntimeIdentifier>$(PackageRID)</RuntimeIdentifier>
|
|
<SelfContained>true</SelfContained>
|
|
<EnableTargetingPackDownload>false</EnableTargetingPackDownload>
|
|
<PlatformManifestFile />
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
Unit/Functional/Integration test support.
|
|
Supported runners: xunit.
|
|
-->
|
|
<Import Project="$(MSBuildThisFileDirectory)xunit\xunit.props" Condition="'$(TestFramework)' == 'xunit'" />
|
|
</Project>
|