bUnit is a testing library for Blazor components.
You can easily define components under test in C# or Razor syntax and verify outcome using semantic HTML diffing/comparison logic.
You can interact with and inspect the component under test, trigger event handlers, provide cascading values, and inject services.
bUnit also includes a complete fake implementation of Blazor's authentication and authorization logic, navigation manager, and
Install-Package bunit -Version 1.1.5
dotnet add package bunit --version 1.1.5
<PackageReference Include="bunit" Version="1.1.5" />
paket add bunit --version 1.1.5
#r "nuget: bunit, 1.1.5"
// Install bunit as a Cake Addin #addin nuget:?package=bunit&version=1.1.5 // Install bunit as a Cake Tool #tool nuget:?package=bunit&version=1.1.5
This package is not used by any NuGet packages.
GitHub repositories (5)
Showing the top 5 popular GitHub repositories that depend on bunit:
Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Bulma, AntDesign, and Material.
A testing library for Blazor Components. You can easily define components under test in C# or Razor syntax and verify outcome using semantic HTML diffing/comparison logic. You can easily interact with and inspect components, trigger event handlers, provide cascading values, inject services, mock IJSRuntime, and perform snapshot testing.
NetLearner: The Internet Resource Learning Helper built with ASP .NET Core