Tests: bump xunit.v3 1.1.0 → 3.2.2 repo-wide and drop the four VersionOverrides #795
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up from #756 (
b211911f).Directory.Packages.propspinsxunit.v3at 1.1.0.Akka.TestKit.Xunit1.5.62 needs ≥ 3.2.2, so the four TestKit projects (AdminUI.Tests, ControlPlane.Tests, Runtime.Tests, Host.Tests) carryVersionOverride="3.2.2". The other 44 test projects stay on 1.1.0.Bumping the pin repo-wide currently fails with about 1,900 analyzer errors in those 44 projects: xUnit1051 (pass
TestContext.Current.CancellationToken) and xUnit3003. #756 already applied the same mechanical fix to the four migrated projects.Done when the central pin is 3.2.2, the overrides are gone, the build has 0 warnings, and test counts per project are unchanged.
Fixed in
83ed880e(pushed to master).Package changes:
xunit.v3central pin 1.1.0 -> 3.2.2 in Directory.Packages.props. The #756 comment is updated.VersionOverride="3.2.2"entries are removed (AdminUI, ControlPlane, Runtime and Host tests).xunit.runner.visualstudiostays at 3.0.2 and is compatible.Fallout was much smaller than estimated. xUnit1051 had already been cleaned (#725/#756), so there were no token call-site edits. The only diagnostics were 12 xUnit3003 errors: the custom Fact/Theory attributes in the AbCip, AbLegacy and TwinCAT IntegrationTests fixtures. Each now has the CallerFilePath/CallerLineNumber source-info ctor, matching
SqlServerFactAttribute. Nothing was suppressed and no test behaviour changed.dotnet build ZB.MOM.WW.OtOpcUa.slnx --no-incrementalgives 0 warnings and 0 errors, including after the rebase onto latest master.Counts, each project run one at a time (passed/skipped, before = origin/master
b211911f, after = this commit). They are identical for every project except two:DriverHostActorApplyingStashTests.ACompletedApply_NeverReportsAWedge(flake). After is 1002 passed + 3 skipped = 1005 total, the same total as before.SdkAggregateParityTests) both before and after (265 passed / 10 failed of 275). This is pre-existing and unrelated.All other unit projects are unchanged; the full per-project list is in the session logs. Integration projects were checked with
--list-testsonly (discovered counts identical): AbCip 55, AbLegacy 16, FOCAS 18, QuestDb 234, SqlServer 195, Modbus 44, Mqtt 30, MTConnect 18, OpcUaClient 5, OpcUaClient.Browser 5, S7 26, Sql 83, TwinCAT 18, Host 289, OpcUaServer 133.