thomhurst/TUnit
A modern, fast and flexible .NET testing framework observed · 2026-08-28
Health v2 · maintenance only
89/100
- Activity 99
- Release rhythm 87
- Longevity 68
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 952
- days_rel: 7
- days_push: 7
- n_releases_24m: 220
Adoption not part of the score
3927 stars · 130 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
TUnit is a modern, fast .NET testing framework built on Microsoft.Testing.Platform that discovers tests at compile time via Roslyn source generators and runs them in parallel by default. It includes fluent async assertions, Roslyn analyzers, an AOT-compatible mocking library, and first-class integrations for ASP.NET Core, Aspire, and Playwright.
Use cases
- write unit tests in C# with a fast modern framework
- run .NET test suites in parallel for faster feedback
- test .NET code with Native AOT and trimming support
- write ASP.NET Core integration tests with per-test isolation
- run Playwright browser tests in .NET
- migrate from xUnit, NUnit, or MSTest
- mock dependencies in AOT-published test projects
When to choose
- you want compile-time test discovery and fast startup instead of reflection-based frameworks
- you need Native AOT, trimming, or single-file publishing for your tests
- you want parallel-by-default execution with fine-grained control
- you're starting a new .NET project and want modern testing tooling
When to avoid
- your team is deeply invested in xUnit, NUnit, or MSTest with no migration appetite
- you rely on runtime reflection-based test discovery or plugins
- you need a mocking library compatible with C# versions older than 14
Facets
framework · maturity active
testing e2e-testing mocking benchmarking testing developer-tools web-development dotnet cross-platform cli csharp source-generators native-aot parallel-execution unit-testing integration-testing aspnet-core playwright microsoft-testing-platform xunit-alternative docker
10 sources
- readme: https://github.com/thomhurst/TUnit · fetched 2026-08-28 · 9fdb55d96d45
- homepage: https://tunit.dev/ · fetched 2026-08-29 · 034fdbeb3fb9
- site_page: https://tunit.dev/docs/examples/aspnet · fetched 2026-08-29 · 48b4f90c0798
- site_page: https://tunit.dev/docs/intro · fetched 2026-08-29 · 659d5f1d5511
- site_page: https://tunit.dev/docs/getting-started/installation · fetched 2026-08-29 · a1c968b597bf
- site_page: https://tunit.dev/docs/guides/philosophy · fetched 2026-08-29 · 071cab9987e9
- site_page: https://tunit.dev/docs/benchmarks · fetched 2026-08-29 · a5c6de095bfd
- site_page: https://tunit.dev/docs/examples/aspire · fetched 2026-08-29 · 75f534dadd32
- site_page: https://tunit.dev/docs/examples/playwright · fetched 2026-08-29 · 982963102622
- site_page: https://tunit.dev/docs/writing-tests/mocking · fetched 2026-08-29 · 4670f9afd91a
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| thomhurst/TUnit | main | 89 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem