Skip to content

fix: correct xunit v3 migration instructions for CI compatibility#16

Draft
bschatzmbo wants to merge 1 commit into
mainfrom
bs/fix-xunit-v3-migration-instructions
Draft

fix: correct xunit v3 migration instructions for CI compatibility#16
bschatzmbo wants to merge 1 commit into
mainfrom
bs/fix-xunit-v3-migration-instructions

Conversation

@bschatzmbo
Copy link
Copy Markdown
Contributor

Summary

  • Corrects xunit v3 migration section: removes incorrect guidance to keep Microsoft.NET.Test.Sdk and xunit.runner.visualstudio (neither works with xunit v3)
  • Replaces dotnet test validation with dotnet run --project for xunit v3 projects
  • Adds CI integration section covering coverlet --targetargs= quoting, full tool paths, and .trx file verification
  • Updates main prompt validation step to distinguish v2/v3 test runners

Context

Learned from Mindbody.Infrastructure.AuditLogging upgrade where the gated build silently produced 0 tests due to coverlet's System.CommandLine parser misinterpreting --targetargs "-trx ..." as -t rx (the -t short option for --target).

Test plan

  • Verified fix locally: coverlet with --targetargs= syntax runs all tests and produces .trx file
  • Next .NET 10 upgrade using these instructions should produce correct CI test results

🤖 Generated with Claude Code

- Remove incorrect guidance to keep Microsoft.NET.Test.Sdk and
  xunit.runner.visualstudio (neither works with xunit v3)
- Replace `dotnet test` validation with `dotnet run --project`
- Add CI integration section covering coverlet --targetargs= quoting,
  full tool paths, and .trx file verification
- Update main prompt validation step to distinguish v2/v3 test runners

Learned from Mindbody.Infrastructure.AuditLogging upgrade where the
gated build silently produced 0 tests due to coverlet argument parsing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bschatzmbo bschatzmbo marked this pull request as draft May 20, 2026 19:39
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