Steve Sanderson 8/29/2019

Unit testing Blazor components - a prototype

Read Original

This article discusses the design goals for a first-rate testing system for Blazor components. It contrasts low-level unit tests and slow E2E tests, then introduces a prototype test helper called 'TestHost' that allows developers to mount and interact with components in a pure .NET environment for fast, reliable unit testing. The post includes code examples for testing a simple counter component.

Unit testing Blazor components - a prototype

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
3
LLM Use in the Python Source Code
Miguel Grinberg 1 votes
4
Wagon’s algorithm in Python
John D. Cook 1 votes