dotnet-blazor-testing

Installation
SKILL.md

dotnet-blazor-testing

bUnit testing for Blazor components. Covers component rendering and markup assertions, event handling, cascading parameters and cascading values, JavaScript interop mocking, and async component lifecycle testing. bUnit provides an in-memory Blazor renderer that executes components without a browser.

Version assumptions: .NET 8.0+ baseline, bUnit 1.x (stable). Examples use the latest bUnit APIs. bUnit supports both Blazor Server and Blazor WebAssembly components.

Scope

  • bUnit component rendering and markup assertions
  • Event handling and user interaction simulation
  • Cascading parameters and cascading values
  • JavaScript interop mocking
  • Async component lifecycle testing

Out of scope

  • Browser-based E2E testing of Blazor apps -- see [skill:dotnet-playwright]
  • Shared UI testing patterns (page object model, selectors, wait strategies) -- see [skill:dotnet-ui-testing-core]
  • Test project scaffolding -- see [skill:dotnet-add-testing]
Installs
4
GitHub Stars
218
First Seen
Feb 24, 2026
dotnet-blazor-testing — novotnyllc/dotnet-artisan