build: bump xunit.v3 to 3.2.2 repo-wide, drop the four VersionOverrides (#795)
v2-ci / unit-tests (push) Has been cancelled

Central pin 1.1.0 -> 3.2.2; AdminUI/ControlPlane/Runtime/Host.Tests no longer carry VersionOverride.
The three driver IntegrationTests fixtures' Fact/Theory attributes gain the source-info ctor (xUnit3003).
No xUnit1051 fallout remained (already cleaned). Test counts unchanged.

Claude-Session: https://claude.ai/code/session_01GT67AEHd2Acv1YPwGfXEoV
This commit is contained in:
Joseph Doherty
2026-11-10 09:31:30 -05:00
parent ea4a3c9289
commit 83ed880e44
8 changed files with 31 additions and 14 deletions
+3 -4
View File
@@ -213,10 +213,9 @@
Applied via a direct PackageReference in the consuming desktop project(s). -->
<PackageVersion Include="Tmds.DBus.Protocol" Version="0.21.3" />
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.2" />
<!-- Akka.TestKit.Xunit 1.5.62 (the xunit.v3 TestKit) requires xunit.v3.assert / extensibility.core >= 3.2.2, so
the 4 Akka TestKit test projects (AdminUI/ControlPlane/Runtime/Host.Tests) carry VersionOverride="3.2.2".
Move this pin to 3.2.2 repo-wide (and drop the overrides) once the other projects' analyzer fallout is handled. -->
<PackageVersion Include="xunit.v3" Version="1.1.0" />
<!-- xunit.v3 3.2.2 repo-wide: Akka.TestKit.Xunit 1.5.62 (the xunit.v3 TestKit) requires xunit.v3.assert /
extensibility.core >= 3.2.2 (#756, #795). No per-project VersionOverride. -->
<PackageVersion Include="xunit.v3" Version="3.2.2" />
<PackageVersion Include="ZB.MOM.WW.Health" Version="0.3.0" />
<!--
LocalDb: embedded SQLite node-local cache + optional 2-node gRPC replication. The core
@@ -100,7 +100,10 @@ public sealed class AbServerFixture : IAsyncLifetime
public sealed class AbServerFactAttribute : FactAttribute
{
/// <summary>Initializes a new instance of the AbServerFactAttribute class.</summary>
public AbServerFactAttribute()
public AbServerFactAttribute(
[System.Runtime.CompilerServices.CallerFilePath] string? sourceFilePath = null,
[System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = -1)
: base(sourceFilePath, sourceLineNumber)
{
if (!AbServerFixture.IsServerAvailable())
Skip = "ab_server not reachable. Start the Docker container " +
@@ -118,7 +121,10 @@ public sealed class AbServerFactAttribute : FactAttribute
public sealed class AbServerTheoryAttribute : TheoryAttribute
{
/// <summary>Initializes a new instance of the AbServerTheoryAttribute class.</summary>
public AbServerTheoryAttribute()
public AbServerTheoryAttribute(
[System.Runtime.CompilerServices.CallerFilePath] string? sourceFilePath = null,
[System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = -1)
: base(sourceFilePath, sourceLineNumber)
{
if (!AbServerFixture.IsServerAvailable())
Skip = "ab_server not reachable. Start the Docker container " +
@@ -239,7 +239,10 @@ public sealed class AbLegacyServerCollection : Xunit.ICollectionFixture<AbLegacy
public sealed class AbLegacyFactAttribute : FactAttribute
{
/// <summary>Initializes the attribute, skipping the test if the server is unavailable.</summary>
public AbLegacyFactAttribute()
public AbLegacyFactAttribute(
[System.Runtime.CompilerServices.CallerFilePath] string? sourceFilePath = null,
[System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = -1)
: base(sourceFilePath, sourceLineNumber)
{
if (!AbLegacyServerFixture.IsServerAvailable())
Skip = "AB Legacy PCCC endpoint not reachable. Start the Docker fixture " +
@@ -254,7 +257,10 @@ public sealed class AbLegacyFactAttribute : FactAttribute
public sealed class AbLegacyTheoryAttribute : TheoryAttribute
{
/// <summary>Initializes the attribute, skipping the test if the server is unavailable.</summary>
public AbLegacyTheoryAttribute()
public AbLegacyTheoryAttribute(
[System.Runtime.CompilerServices.CallerFilePath] string? sourceFilePath = null,
[System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = -1)
: base(sourceFilePath, sourceLineNumber)
{
if (!AbLegacyServerFixture.IsServerAvailable())
Skip = "AB Legacy PCCC endpoint not reachable. Start the Docker fixture " +
@@ -124,7 +124,10 @@ public sealed class TwinCATXarCollection : Xunit.ICollectionFixture<TwinCATXarFi
public sealed class TwinCATFactAttribute : FactAttribute
{
/// <summary>Initializes a new instance of the TwinCATFactAttribute class.</summary>
public TwinCATFactAttribute()
public TwinCATFactAttribute(
[System.Runtime.CompilerServices.CallerFilePath] string? sourceFilePath = null,
[System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = -1)
: base(sourceFilePath, sourceLineNumber)
{
if (!TwinCATXarFixture.IsRuntimeAvailable())
Skip = "TwinCAT XAR not reachable. See docs/drivers/TwinCAT-Test-Fixture.md " +
@@ -136,7 +139,10 @@ public sealed class TwinCATFactAttribute : FactAttribute
public sealed class TwinCATTheoryAttribute : TheoryAttribute
{
/// <summary>Initializes a new instance of the TwinCATTheoryAttribute class.</summary>
public TwinCATTheoryAttribute()
public TwinCATTheoryAttribute(
[System.Runtime.CompilerServices.CallerFilePath] string? sourceFilePath = null,
[System.Runtime.CompilerServices.CallerLineNumber] int sourceLineNumber = -1)
: base(sourceFilePath, sourceLineNumber)
{
if (!TwinCATXarFixture.IsRuntimeAvailable())
Skip = "TwinCAT XAR not reachable. See docs/drivers/TwinCAT-Test-Fixture.md " +
@@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.v3" VersionOverride="3.2.2"/>
<PackageReference Include="xunit.v3"/>
<PackageReference Include="Shouldly"/>
<PackageReference Include="bunit"/>
<!-- bUnit (test-only) pulls AngleSharp 1.1.1 (GHSA-pgww-w46g-26qg, moderate, HTML parsing of untrusted
@@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.v3" VersionOverride="3.2.2"/>
<PackageReference Include="xunit.v3"/>
<PackageReference Include="Shouldly"/>
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
<PackageReference Include="Akka.TestKit.Xunit"/>
@@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.v3" VersionOverride="3.2.2"/>
<PackageReference Include="xunit.v3"/>
<PackageReference Include="Shouldly"/>
<!-- NodeCommandGrpcServiceTests registers a TestProbe under NodeCommunicationActorKey, so the
service is asserted against the same ActorRegistry seam the Host wires in production. -->
@@ -7,7 +7,7 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="xunit.v3" VersionOverride="3.2.2"/>
<PackageReference Include="xunit.v3"/>
<PackageReference Include="Shouldly"/>
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
<PackageReference Include="Akka.TestKit.Xunit"/>