Blazorise Testing Guide
Get started testing with Blazor and Blazorise in no time.
Testing with bUnit
To ensure proper functioning during testing, it's necessary to set up an internal Blazorise Service as Transient. This adjustment is crucial to avoid errors from the bUnit testing framework. Implement the following configuration:
Apart from this setup, the system should operate seamlessly. If you encounter any challenges, please reach out for assistance.
Additionally, for guidance on testing, you might find it useful to review some of our test cases. If you're looking for a starter package to facilitate testing of Blazorise components with bUnit, please refer to the subsequent section for more information.
For initiating tests on Blazorise components using bUnit, we offer a supportive package.
bUnitThe initial action involves installing a Blazorise testing package:
Services .AddBlazoriseTests() .AddBootstrapProviders() .AddEmptyIconProvider();
The package includes both
AddEmptyIconProvider. For providers, you have the flexibility to choose from any Blazorise provider options.