stabilize tests
This commit is contained in:
@@ -163,6 +163,9 @@
|
||||
TEST PROJECT CONFIGURATION
|
||||
============================================================================ -->
|
||||
|
||||
<PropertyGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.Tests'))">
|
||||
<RestoreDisableParallel Condition="'$(RestoreDisableParallel)' == ''">true</RestoreDisableParallel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.Tests')) and '$(UseXunitV3)' == ''">
|
||||
<UseXunitV3>true</UseXunitV3>
|
||||
</PropertyGroup>
|
||||
@@ -175,11 +178,14 @@
|
||||
<Using Include="StellaOps.Concelier.Testing" Condition="'$(ConcelierTestingPath)' != ''" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Test projects using xUnit v3 -->
|
||||
<PropertyGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.Tests')) and '$(UseXunitV3)' == 'true'">
|
||||
<!-- xUnit v3 test projects: applies to *.Tests (auto-detected) AND projects that set UseXunitV3=true locally -->
|
||||
<PropertyGroup Condition="'$(UseXunitV3)' == 'true'">
|
||||
<OutputType Condition="'$(OutputType)' == ''">Exe</OutputType>
|
||||
<UseAppHost>true</UseAppHost>
|
||||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
|
||||
<!-- Enable dotnet test support via Microsoft Testing Platform (xUnit v3 native runner).
|
||||
This replaces the vstest/testhost approach (Microsoft.NET.Test.Sdk) which lacks net10.0 assets. -->
|
||||
<TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
|
||||
<!-- Suppress xUnit analyzer warnings until tests are migrated:
|
||||
- xUnit1031: Blocking task operations
|
||||
- xUnit1041: Fixture issues
|
||||
@@ -195,7 +201,6 @@
|
||||
<NoWarn>$(NoWarn);EXCITITOR001</NoWarn>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition="$([System.String]::Copy('$(MSBuildProjectName)').EndsWith('.Tests')) and '$(UseXunitV3)' == 'true'">
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" />
|
||||
<PackageReference Include="xunit.v3" />
|
||||
<PackageReference Include="xunit.runner.visualstudio">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
|
||||
Reference in New Issue
Block a user