Skip to content

Beta 8

Choose a tag to compare

@egil egil released this 15 Jul 09:57
· 1991 commits to main since this release
8306d82

Here is beta-8, a small summer vacation release. A few needed additions, especially around testing components that use Blazor's authentication and authorization. Big thanks to all contributors for helping out with this release. I especially want to highlight @DarthPedro for all his work on the fake authorization helpers.

In addition to this, a lot of documentation has been added to https://bunit.egilhansen.com/, which I hope will help newcomers to bUnit get a good and easy start.

The details are in the changelog below:

Added

List of new features.

  • Authorization fakes added to make it much easier to test components that use authentication and authorization. Learn more in the Faking Blazor's Authentication and Authorization page. By @DarthPedro in #151.

  • Added MarkupMatches(this string actual ...) extension methods. Make it easier to compare just the text content from a DON text node with a string, while still getting the benefit of the semantic HTML comparer.

Changed

List of changes in existing functionality.

  • TestContextBase.Dispose made virtual to allow inheritor's to override it. By @SimonCropp in #137.

  • [Breaking change] Changed naming convention for JSMock feature and moved to new namespace, Bunit.TestDoubles.JSInterop. All classes and methods containing Js (meaning JavaScript) renamed to JS for consistency with Blazor's IJSRuntime. By @yourilima in #150