Ross ROSS = Recommend OSS · open-source software intelligence for agents

bUnit-dev/bUnit

bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer. observed · 2026-08-28

github.com/bUnit-dev/bUnit · homepage · C# · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

98/100

  • Activity 98
  • Release rhythm 96
  • Longevity 100
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: 18.5
  • age_days: 2594
  • days_rel: 30
  • days_push: 16
  • n_releases_24m: 19

Full methodology

Adoption not part of the score

1304 stars · 121 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

bUnit is a C# testing library for Blazor components that lets tests run like regular unit tests on top of xUnit, NUnit, MSTest, and TUnit. It supports rendering components, passing parameters and injecting services, triggering event handlers, mocking dependencies like IJSRuntime, and verifying output with a semantic HTML comparer.

Use cases

  • unit test blazor components
  • render a razor component in a test and verify its markup
  • trigger button click events in blazor component tests
  • mock ijsruntime in blazor tests
  • test blazor component with injected services and cascading values
  • fast component tests without a browser
  • snapshot test blazor component output

When to choose

  • you write Blazor apps and want fast, millisecond component tests without a browser
  • you already use xUnit, NUnit, MSTest, or TUnit and want component tests in the same suite
  • you need to test component lifecycle, parameters, event handlers, and rendered markup

When to avoid

  • you need full end-to-end browser testing of a running Blazor app - use Playwright or similar
  • you are not working with Blazor or Razor components
  • you need visual regression testing of actual rendered pixels

Facets

library · maturity active

testing mocking ui-components testing web-development frontend developer-tools dotnet cross-platform blazor razor-components component-testing xunit nunit mstest snapshot-testing semantic-html-comparer csharp

4 sources

Member repositories

RepositoryRoleHealth v2
bUnit-dev/bUnitmain98

For agents

markdown · JSON · MCP: product_card(name="bUnit-dev/bUnit")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem