Skip to main content
bUnit avatar

bUnit

9 packages

Author Trust

Established85/100Verified Publisher by NuGet
9
Packages
56.1M
Total DLs
Sort:

9 packages

bunit package icon

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.

21.5M145 versionsbUnit, razor, components +5
bunit.core package icon

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.

17.4M113 versionsbUnit, razor, components +5
bunit.web package icon

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.

16.0M114 versionsbUnit, razor, components +5
bunit.xunit package icon

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.

447.0K4 versionsbUnit, razor, components +11
bunit.template package icon

bunit.template

Egil Hansen

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

273.5K139 versionsbUnit, razor, components +5
bunit.web.testcomponents package icon

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.

217.0K54 versionsbUnit, razor, components +11
bunit.web.query package icon

bunit.web.query

Egil Hansen

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

86.2K60 versionsbUnit, razor, components +5
bunit.generators package icon

bunit.generators

Egil Hansen

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

78.3K47 versionsbUnit, razor, components +5
bunit.web.mock package icon

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.

7031 versionbUnit, razor, components +11