Skip to content

Fix CI: resolve xunit runner version mismatch#16

Merged
phmatray merged 1 commit into
mainfrom
fix/ci-xunit-runner-version
Mar 9, 2026
Merged

Fix CI: resolve xunit runner version mismatch#16
phmatray merged 1 commit into
mainfrom
fix/ci-xunit-runner-version

Conversation

@phmatray
Copy link
Copy Markdown
Contributor

@phmatray phmatray commented Mar 9, 2026

Summary

  • Downgrade xunit.runner.visualstudio from 3.1.5 to 2.8.2 to fix version mismatch with xunit 2.9.3. The v3 runner uses Microsoft Testing Platform, which is incompatible with xunit v2 and rejects the test DLL argument passed by VSTest, causing The argument ...TenantKit.Tests.dll is invalid.
  • Add explicit build step for the test project in CI, since it was not being built before the dotnet test --no-build step.

Test plan

  • Verified locally: all 24 tests pass with dotnet test --configuration Release --no-build
  • CI should pass on this PR

The CI was failing because xunit.runner.visualstudio 3.1.5 (v3 runner)
is incompatible with xunit 2.9.3 (v2). The v3 runner uses Microsoft
Testing Platform which rejects the test DLL argument passed by VSTest.

- Downgrade xunit.runner.visualstudio from 3.1.5 to 2.8.2 to match
  the xunit v2 test framework
- Add explicit build step for the test project before running tests
  with --no-build
@phmatray phmatray merged commit fec50e9 into main Mar 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant