bUnit is a testing library for Blazor Components. Its goal is to make it easy to write comprehensive, stable unit tests. You can:
bUnit builds on top of existing unit testing frameworks such as xUnit, NUnit, and MSTest, which runs the Blazor components tests, just as any normal unit test.
Go to bUnit.egilhansen.com to learn more.
bUnit is available on NuGet in various incarnations. If you are using xUnit as your general purpose testing framework, you can use
bunit, which includes everything in one package. If you want to use NUnit or MStest, then pick
|Name||Type||NuGet Download Link|
|bUnit||Library, includes core, web, and xUnit|
|bUnit.core||Library, only core|
|bUnit.web||Library, web and core|
|bUnit.xUnit||Library, xUnit and core|
|bUnit.template||Template, which currently creates an xUnit based bUnit test projects only|
To get started, head to the getting started documentation to learn more.
These are the current goals that should be reached before v1.0.0 is ready:
In the post v1.0.0 to v1.0.x time frame, focus will be on improving performance. Especially the spin-up time of about one second would be nice to get reduced.
Shout outs and a big thank you to all the contributors to the library, both those that raise issues, provide input to issues, and those who send pull requests. Thank you!