Skip to content

Migrate tests from xUnit to TUnit - #5

Merged
kylebavis merged 1 commit into
mainfrom
migrate-to-tunit
Oct 22, 2026
Merged

kylebavis merged 1 commit into
mainfrom
migrate-to-tunit

Conversation

@kylebavis

Copy link
Copy Markdown
Owner

Replaces xUnit with TUnit 1.76.0.

  • [Fact]/[Theory] → [Test], [InlineData] → [Arguments], assertions → await Assert.That(...)
  • IClassFixture<AppFactory> → [ClassDataSource<AppFactory>(Shared = SharedType.PerClass)]
  • global.json opts dotnet test into Microsoft.Testing.Platform (required on .NET 10)
  • CI and Dockerfile use dotnet test --solution / --project

TUnit runs tests within a class in parallel, so AppFactory now starts its host in IAsyncInitializer to avoid concurrent first CreateClient calls racing on DB seeding.

All 46 tests pass in the Docker test stage and with the CI commands.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kylebavis
kylebavis merged commit 712c7ad into main Oct 22, 2026
2 checks passed
@kylebavis
kylebavis deleted the migrate-to-tunit branch October 22, 2026 00:34
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