bunit 1.0.0-beta-10

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, inject services, mock JavaScript interopt, and perform snapshot testing.

NOTE: This version includes support for xUnit as the general-purpose test framework. In other words, installing this package is equivalent to installing the packages "bunit.core", "bunit.web", and "bunit.xunit".

If you prefer Nunit or MSTest, just install the “bunit.core” and “bunit.web” packages.

This is a prerelease version of bunit.
There is a newer version of this package available.
See the version list below for details.
Install-Package bunit -Version 1.0.0-beta-10
dotnet add package bunit --version 1.0.0-beta-10
<PackageReference Include="bunit" Version="1.0.0-beta-10" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add bunit --version 1.0.0-beta-10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: bunit, 1.0.0-beta-10"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install bunit as a Cake Addin
#addin nuget:?package=bunit&version=1.0.0-beta-10&prerelease

// Install bunit as a Cake Tool
#tool nuget:?package=bunit&version=1.0.0-beta-10&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on bunit:

Package Downloads
Renders Blazor markup in dotnet-interactive notebooks.
Package Description
Extension methods that provide fluent assertions on top of BUnit.
Package Description

GitHub repositories (7)

Showing the top 5 popular GitHub repositories that depend on bunit:

Repository Stars
Blazorise is a component library built on top of Blazor with support for CSS frameworks like Bootstrap, Bulma, AntDesign, and Material.
Blazor Component Library based on Material design. The goal is to do more with Blazor, utilizing CSS and keeping Javascript to a bare minimum.
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.
A JavaScript free toast library for Blazor and Razor Component applications
NetLearner: The Internet Resource Learning Helper built with ASP .NET Core

Version History

Version Downloads Last updated
1.2.49 10,867 8/9/2021
1.2.49-preview 133 8/7/2021
1.2.36-preview 3,133 6/25/2021
1.2.35-preview 75 6/24/2021
1.2.28-preview 939 5/26/2021
1.2.27-preview 206 5/22/2021
1.2.26-preview.gd07edb4207 92 5/21/2021
1.1.5 51,588 4/30/2021
1.0.19 17,212 4/11/2021
1.0.16 387 4/11/2021
1.0.0-preview-02 1,911 3/26/2021
1.0.0-preview-01 32,208 12/24/2020
1.0.0-beta-11 23,697 10/26/2020
1.0.0-beta-10 17,745 9/15/2020
Show less