# bUnit

Testing library for Blazor components that renders them inside .NET unit test projects and verifies their markup.


Source: https://findsoftware.frbit.cloud/bunit/
Last reviewed: 2026-11-04
Listed since: 2026-11-04

## Record

### Links

- home: https://bunit.dev
- repository: https://github.com/bUnit-dev/bUnit
- docs: https://bunit.dev/docs/getting-started/
- forum: https://github.com/bUnit-dev/bUnit/discussions

### Identity

- status: active
- maintainer: Egil Hansen
- maintainerType: unknown
- parent: unknown
- firstRelease: 2019
- hqCountry: unknown

### Kind

- category: testing
- hosting: not applicable
- language: csharp
- runtime: dotnet
- runtimeMin: dotnet 8.0
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: nuget

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 2
- latestReleaseDate: 2026-10-25

### Adoption

- githubStargazers: 1311
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 59
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 369
- dependentPackages: 17

### Sources

- urls: https://bunit.dev/ (read 2026-11-04)
- urls: https://api.github.com/repos/bUnit-dev/bUnit (read 2026-11-04)
- urls: https://bunit.dev/docs/getting-started/ (read 2026-11-04)
- category: https://bunit.dev/ (read 2026-11-04)
- language: https://api.github.com/repos/bUnit-dev/bUnit (read 2026-11-04)
- runtime: https://github.com/bUnit-dev/bUnit/blob/stable/docs/site/docs/getting-started/create-test-project.md (read 2026-11-04)
- runtimeMin: https://github.com/bUnit-dev/bUnit/blob/v2.13.3/src/bunit/bunit.csproj (read 2026-11-04)
- installMethod: https://github.com/bUnit-dev/bUnit/blob/stable/docs/site/docs/getting-started/create-test-project.md (read 2026-11-04)
- installMethod: https://github.com/bUnit-dev/bUnit/blob/stable/docs/site/docs/getting-started/create-test-project.md (read 2026-11-04)
- license: https://api.github.com/repos/bUnit-dev/bUnit (read 2026-11-04)
- licenseModel: https://raw.githubusercontent.com/bUnit-dev/bUnit/main/LICENSE (read 2026-11-04)
- maintainer: https://github.com/bUnit-dev/bUnit/blob/v2.13.3/src/Directory.Build.props (read 2026-11-04)
- firstRelease: https://api.github.com/repos/bUnit-dev/bUnit/releases (read 2026-11-04)
- currentMajor: https://api.github.com/repos/bUnit-dev/bUnit/releases (read 2026-11-04)
- latestReleaseDate: https://api.github.com/repos/bUnit-dev/bUnit/releases (read 2026-11-04)
- githubStargazers: https://api.github.com/repos/bUnit-dev/bUnit (read 2026-11-04)
- contributors: https://api.github.com/repos/bUnit-dev/bUnit/contributors (read 2026-11-04)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/bunit (read 2026-11-04)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/nuget.org/packages/bunit (read 2026-11-04)

## Notes

bUnit lets .NET test projects render Blazor components and check their markup. The [getting-started guide](https://bunit.dev/docs/getting-started/) covers creating a test project, either from the bUnit project template or by adding the package from NuGet to an existing test project.

## Worth knowing

bUnit is no test runner. It builds on xUnit, NUnit, MSTest or TUnit, and a test project uses one of them alongside bUnit.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
