У нас вы можете посмотреть бесплатно Unit Testing Blazor Components Like a Pro with bUnit | Best Practices & Live Demos или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Why should you test Blazor components – and how do you do it effectively? In this talk, we dive into bUnit, a powerful testing library that makes unit testing Blazor components feel as seamless as testing plain C# objects. You’ll learn: – The difference between browser-based and component-level testing – How to write fast, maintainable tests using bUnit – Best practices for mocking services, handling async code, and avoiding brittle DOM selectors – Real-world examples with live coding Whether you’re building a Blazor app or a reusable component library, this session will help you create stable and maintainable test suites. Looking for a professional consulting partner? Please contact us today. 🔗 https://devessence.com / devessence 🎬 Timestamps 0:00 Introduction & Speaker Intros 1:30 Overview of Blazor Testing Approaches (Playwright vs bUnit) 3:30 What is bUnit and How It Works 6:00 Setting Up a bUnit Test Project 10:30 Writing Your First Component Test (Hello World) 15:00 Interacting with Components in Tests (clicks, inputs, assertions) 20:00 Using markupMatches and Avoiding Brittle Tests 25:00 Handling Async Components & waitForElement 30:00 Mocking & Replacing Services in Tests 35:00 Testing Without Real Dependencies (stubbing, fakes) 40:00 Replacing Child Components (addStub, mocking 3rd-party components) 47:00 Accessing Components Directly (FindComponent, test structure tips) 50:00 Summary, Best Practices & Where to Learn More #bunit #blazor #dotnettesting