Testing Blazor Apps with Egil Hansen
How do you test your Blazor app? Carl and Richard talk to Egil Hansen about bUnit, an open-source testing framework designed to work with Blazor - both the server-side Razor components and the WebAssembly client. Egil talks about building bUnit to allow for robust testing, that is, tolerant to the normal changes that come to an application without breaking all the tests. The conversation also turns to growing the bUnit project with more contributors, a wider set of features, and perhaps being part of the .NET Foundation!
Guests:
Egil Hansen
Egil Hansen, a Dane chilling in Iceland, is a developer at Delegate and a Microsoft MVP! He chats globally at conferences about nifty developer stuff and is all about that clean, maintainable code. He's the creator behind bUnit (for Blazor tests) and AngleSharp.Diffing (think "spot the HTML difference" in C#). Though he's danced to many tech tunes, Egil's current jam is everything .NET and cloud. Check out his repos at https://github.com/egil (yes, this bio was written by ChatGPT).
Links:
- SignalR and Blazor WebAssembly https://docs.microsoft.com/en-us/aspnet/core/tutorials/signalr-blazor-webassembly?view=aspnetcore-3.1
- bUnit https://bunit.egilhansen.com/
- Selenium https://www.selenium.dev/
- Unit Testing Blazor Components https://blog.stevensanderson.com/2019/08/29/blazor-unit-testing-prototype/
- AngleSharp https://anglesharp.github.io/
- xUnit https://xunit.net/