bUnit
Author Trust
9 packages
bunit
Egil Hansen
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.
bunit.core
Egil Hansen
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.
bunit.web
Egil Hansen
bUnit.web is the web specific parts of bUnit, that enables you to easily test and verify the output of Blazor (web) component.
bunit.xunit
Egil Hansen
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.
bunit.template
Egil Hansen
A project template for a testing Blazor/Razor components using the bUnit library.
bunit.web.testcomponents
Egil Hansen
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.
bunit.web.query
Egil Hansen
bunit.web.query is an experimental package that provides an bUnit version of the https://testing-library.com/ APIs.
bunit.generators
Egil Hansen
bUnit.generators is an extension to bUnit that provides code generators for stubbing components.
bunit.web.mock
Egil Hansen
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.