stabilize tests

This commit is contained in:
master
2026-02-01 21:37:40 +02:00
parent 55744f6a39
commit 5d5e80b2e4
6435 changed files with 33984 additions and 13802 deletions

View File

@@ -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>