Skip to main content
bUnit avatar

bUnit

NuGet publisher profile

Packages
9
Total Downloads
45.3M
45,312,101

Packages (9)

bunit.core package icon

bunit.core

bUnit.core is the base library that provides support for testing Blazor components. You need to install bUnit.web as well to test web-based Blazor components.

15.4M
downloads
bunit package icon

bunit

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 JSInterop.

14.9M
downloads
bunit.web package icon

bunit.web

bUnit.web is the web specific parts of bUnit, that enables you to easily test and verify the output of Blazor (web) component.

14.1M
downloads
bunit.xunit package icon

bunit.xunit

bUnit.xunit is an xUnit extension for bUnit, that provides a way for xUnit to run bUnit's razor-based tests, as well as other helpful extensions to make the testing experience better if you use xUnit for writing your tests.

419.4K
downloads
bunit.template package icon

bunit.template

A project template for a testing Blazor/Razor components using the bUnit library.

251.9K
downloads
bunit.web.testcomponents package icon

bunit.web.testcomponents

bUnit.web.testcomponents enables writing tests using the <Fixture> and <SnapshotTest> components in .razor files. This package only works with xUnit. NOTE: This package represents experimental features of bUnit that has been superseded by better ones. It is provided to avoid breaking existing test suites but is unlikely to see improvements or updates in the future.

202.1K
downloads
bunit.web.query package icon

bunit.web.query

bunit.web.query is an experimental package that provides an bUnit version of the https://testing-library.com/ APIs.

65.7K
downloads
bunit.generators package icon

bunit.generators

bUnit.generators is an extension to bUnit that provides code generators for stubbing components.

57.3K
downloads
bunit.web.mock package icon

bunit.web.mock

bUnit.web.mock contains an experimental component stubbing mocking library. This library is in preview, and the logic will likely be added back into bUnit when out of preview.

642
downloads