# xunit/xunit

xUnit.net is a free, open source, community-focused unit testing tool for .NET.

Repository: https://github.com/xunit/xunit
Canonical: https://ross.abutalabs.com/products/xunit
Homepage: https://xunit.net/
Language: C#
License: NOASSERTION
License Family: other
Topics: unit-testing, xunit, c-sharp, dotnet
Last push: 2026-08-25T19:44:12+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 74, longevity 100
- inputs: {"age_days": 4867, "days_push": 8, "days_rel": 18, "gap_med": 125, "n_releases_24m": 2}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4600, forks 841 (observed 2026-08-28T04:08:54.825393+00:00)

## What it is
xUnit.net is a free, open-source unit testing framework for C#, F#, and Visual Basic on .NET, providing test discovery, assertions, extensibility, and Roslyn analyzers. Version 3 supports .NET 8+ and .NET Framework 4.7.2+, integrates with Visual Studio, Rider, VS Code, and Microsoft Testing Platform or VSTest, and adds Native AOT support and test parallelization.

## Use cases
- write unit tests for C# .NET applications
- run tests with dotnet test or Microsoft Testing Platform
- add Roslyn analyzers for xUnit usage mistakes
- run tests in Native AOT published projects
- migrate from xUnit v2 to v3
- parameterized theory tests with data-driven inputs

## When to choose
- you are writing .NET unit tests and want the community-standard framework
- you need Native AOT test support or full test case parallelization
- you use Visual Studio, Rider, VS Code, or NCrunch and want integrated test runners

## When to avoid
- you are not on the .NET platform
- you still require Mono support, which v3 has dropped
- you rely on VSTest with published Native AOT binaries, which is unsupported

## Facets
- artifact type: library
- maturity: stable
- function: testing, developer-tools
- domain: testing, developer-tools
- platform: dotnet, windows, cli
- tags: unit-testing, c-sharp, f-sharp, visual-basic, test-framework, vstest, native-aot, roslyn-analyzers, dotnet, macos, linux

## Member repositories
- xunit/xunit (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:54.825393+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:19:47.795200+00:00, confidence not recorded.
  - readme: https://github.com/xunit/xunit (fetched 2026-08-28T04:08:54.825393+00:00, sha 1c8e37b8851d)
  - homepage: https://xunit.net/ (fetched 2026-08-29T09:04:56.729716+00:00, sha a79c68c80b01)
  - site_page: https://xunit.net/docs/using-ci-builds (fetched 2026-08-29T09:04:56.748767+00:00, sha 23f2eda8a427)
  - site_page: https://xunit.net/releases/v3/4.0.0 (fetched 2026-08-29T09:04:56.739096+00:00, sha b196f2499cfb)
  - site_page: https://xunit.net/releases/v2/2.9.3 (fetched 2026-08-29T09:04:56.742039+00:00, sha ac2821c52c96)
  - site_page: https://xunit.net/releases/analyzers/2.0.0 (fetched 2026-08-29T09:04:56.743760+00:00, sha 2d0d6fdbed12)
  - site_page: https://xunit.net/releases/visualstudio/4.0.0 (fetched 2026-08-29T09:04:56.745680+00:00, sha d46a2bea658b)
  - site_page: https://xunit.net/releases (fetched 2026-08-29T09:04:56.747219+00:00, sha 08a97f759626)
- Data as of 2026-08-30T08:39:29.467469+00:00.
