build: bump xunit.v3 to 3.2.2 repo-wide, drop the four VersionOverrides (#795)
v2-ci / unit-tests (push) Has been cancelled
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:
@@ -213,10 +213,9 @@
|
|||||||
Applied via a direct PackageReference in the consuming desktop project(s). -->
|
Applied via a direct PackageReference in the consuming desktop project(s). -->
|
||||||
<PackageVersion Include="Tmds.DBus.Protocol" Version="0.21.3" />
|
<PackageVersion Include="Tmds.DBus.Protocol" Version="0.21.3" />
|
||||||
<PackageVersion Include="xunit.runner.visualstudio" Version="3.0.2" />
|
<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
|
<!-- xunit.v3 3.2.2 repo-wide: Akka.TestKit.Xunit 1.5.62 (the xunit.v3 TestKit) requires xunit.v3.assert /
|
||||||
the 4 Akka TestKit test projects (AdminUI/ControlPlane/Runtime/Host.Tests) carry VersionOverride="3.2.2".
|
extensibility.core >= 3.2.2 (#756, #795). No per-project VersionOverride. -->
|
||||||
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="3.2.2" />
|
||||||
<PackageVersion Include="xunit.v3" Version="1.1.0" />
|
|
||||||
<PackageVersion Include="ZB.MOM.WW.Health" Version="0.3.0" />
|
<PackageVersion Include="ZB.MOM.WW.Health" Version="0.3.0" />
|
||||||
<!--
|
<!--
|
||||||
LocalDb: embedded SQLite node-local cache + optional 2-node gRPC replication. The core
|
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
|
public sealed class AbServerFactAttribute : FactAttribute
|
||||||
{
|
{
|
||||||
/// <summary>Initializes a new instance of the AbServerFactAttribute class.</summary>
|
/// <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())
|
if (!AbServerFixture.IsServerAvailable())
|
||||||
Skip = "ab_server not reachable. Start the Docker container " +
|
Skip = "ab_server not reachable. Start the Docker container " +
|
||||||
@@ -118,7 +121,10 @@ public sealed class AbServerFactAttribute : FactAttribute
|
|||||||
public sealed class AbServerTheoryAttribute : TheoryAttribute
|
public sealed class AbServerTheoryAttribute : TheoryAttribute
|
||||||
{
|
{
|
||||||
/// <summary>Initializes a new instance of the AbServerTheoryAttribute class.</summary>
|
/// <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())
|
if (!AbServerFixture.IsServerAvailable())
|
||||||
Skip = "ab_server not reachable. Start the Docker container " +
|
Skip = "ab_server not reachable. Start the Docker container " +
|
||||||
|
|||||||
+8
-2
@@ -239,7 +239,10 @@ public sealed class AbLegacyServerCollection : Xunit.ICollectionFixture<AbLegacy
|
|||||||
public sealed class AbLegacyFactAttribute : FactAttribute
|
public sealed class AbLegacyFactAttribute : FactAttribute
|
||||||
{
|
{
|
||||||
/// <summary>Initializes the attribute, skipping the test if the server is unavailable.</summary>
|
/// <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())
|
if (!AbLegacyServerFixture.IsServerAvailable())
|
||||||
Skip = "AB Legacy PCCC endpoint not reachable. Start the Docker fixture " +
|
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
|
public sealed class AbLegacyTheoryAttribute : TheoryAttribute
|
||||||
{
|
{
|
||||||
/// <summary>Initializes the attribute, skipping the test if the server is unavailable.</summary>
|
/// <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())
|
if (!AbLegacyServerFixture.IsServerAvailable())
|
||||||
Skip = "AB Legacy PCCC endpoint not reachable. Start the Docker fixture " +
|
Skip = "AB Legacy PCCC endpoint not reachable. Start the Docker fixture " +
|
||||||
|
|||||||
+8
-2
@@ -124,7 +124,10 @@ public sealed class TwinCATXarCollection : Xunit.ICollectionFixture<TwinCATXarFi
|
|||||||
public sealed class TwinCATFactAttribute : FactAttribute
|
public sealed class TwinCATFactAttribute : FactAttribute
|
||||||
{
|
{
|
||||||
/// <summary>Initializes a new instance of the TwinCATFactAttribute class.</summary>
|
/// <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())
|
if (!TwinCATXarFixture.IsRuntimeAvailable())
|
||||||
Skip = "TwinCAT XAR not reachable. See docs/drivers/TwinCAT-Test-Fixture.md " +
|
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
|
public sealed class TwinCATTheoryAttribute : TheoryAttribute
|
||||||
{
|
{
|
||||||
/// <summary>Initializes a new instance of the TwinCATTheoryAttribute class.</summary>
|
/// <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())
|
if (!TwinCATXarFixture.IsRuntimeAvailable())
|
||||||
Skip = "TwinCAT XAR not reachable. See docs/drivers/TwinCAT-Test-Fixture.md " +
|
Skip = "TwinCAT XAR not reachable. See docs/drivers/TwinCAT-Test-Fixture.md " +
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="xunit.v3" VersionOverride="3.2.2"/>
|
<PackageReference Include="xunit.v3"/>
|
||||||
<PackageReference Include="Shouldly"/>
|
<PackageReference Include="Shouldly"/>
|
||||||
<PackageReference Include="bunit"/>
|
<PackageReference Include="bunit"/>
|
||||||
<!-- bUnit (test-only) pulls AngleSharp 1.1.1 (GHSA-pgww-w46g-26qg, moderate, HTML parsing of untrusted
|
<!-- bUnit (test-only) pulls AngleSharp 1.1.1 (GHSA-pgww-w46g-26qg, moderate, HTML parsing of untrusted
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="xunit.v3" VersionOverride="3.2.2"/>
|
<PackageReference Include="xunit.v3"/>
|
||||||
<PackageReference Include="Shouldly"/>
|
<PackageReference Include="Shouldly"/>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
|
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
|
||||||
<PackageReference Include="Akka.TestKit.Xunit"/>
|
<PackageReference Include="Akka.TestKit.Xunit"/>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="xunit.v3" VersionOverride="3.2.2"/>
|
<PackageReference Include="xunit.v3"/>
|
||||||
<PackageReference Include="Shouldly"/>
|
<PackageReference Include="Shouldly"/>
|
||||||
<!-- NodeCommandGrpcServiceTests registers a TestProbe under NodeCommunicationActorKey, so the
|
<!-- NodeCommandGrpcServiceTests registers a TestProbe under NodeCommunicationActorKey, so the
|
||||||
service is asserted against the same ActorRegistry seam the Host wires in production. -->
|
service is asserted against the same ActorRegistry seam the Host wires in production. -->
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="xunit.v3" VersionOverride="3.2.2"/>
|
<PackageReference Include="xunit.v3"/>
|
||||||
<PackageReference Include="Shouldly"/>
|
<PackageReference Include="Shouldly"/>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
|
<PackageReference Include="Microsoft.NET.Test.Sdk"/>
|
||||||
<PackageReference Include="Akka.TestKit.Xunit"/>
|
<PackageReference Include="Akka.TestKit.Xunit"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user