Wednesday 

Room 4 

10:20 - 11:20 

(UTC±00

Talk (60 min)

Best Practices for Unit Testing Blazor Components with bUnit

Why create tests of UI components? Isn’t UI tests inherently brittle, run slowly, and hard to maintain?

Web
.NET
Testing

The answer is no, at least not with bUnit. bUnit is a testing library built to make writing tests for Blazor components feel like writing tests for plain old C# objects (POCOs), which means a lot of the good practices we know from unit testing carries over, as well as the benefits.

This presentation will give a brief introduction to bUnit and then dive into some of the best practices for writing components tests, tests which results in both stable and maintainable test suites as well as maintainable Blazor components.

Egil Hansen

Experienced software developer/architect, international speaker, and Microsoft MVP for developer technologies, with a strong focus on creating maintainable software that solves real business problems in the cloud and on-prem, using techniques and practices such as domain-driven design, test-driven development, and following clean-code principles.

Egil is also the creator and maintainer of bUnit, an open-source library for testing Blazor components, and AngleSharp.Diffing, a library for semantic comparison of HTML in C#.

Egil has worked with many technology stacks and architectural patterns throughout his career. He is now primarily focused on the .NET ecosystem, including backend and front-end technologies, and developing solutions running in the cloud.