Skip to content
forked from bUnit-dev/bUnit

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.

License

Notifications You must be signed in to change notification settings

vanderstack/bunit

 
 

Repository files navigation

GitHub Workflow Status GitHub tag (latest SemVer pre-release) Nuget Issues Open Gitter

bUnit - a testing library for Blazor components

bUnit, previously known as Blazor Components Testing Library, 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 easily interact with and inspect components, trigger event handlers, provide cascading values, inject services, mock IJsRuntime, and perform snapshot testing.

The library's goal is to make it easy to write comprehensive, stable unit tests for Blazor Components/Razor Components. Go to bunit.egilhansen.com to learn more.

Contributors

Shout outs and a big thank you to the contributors to this library. Here they are, in alphabetically:

About

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 93.5%
  • HTML 6.5%