Autoplay
Autocomplete
Previous Lesson
Complete and Continue
5 Non-Obvious Tips for Writing Better Unit Tests
1. Making Tests Mutually Independent
Introduction (2:49)
Independence from Production Code (4:03)
Leaking Domain Knowledge to Tests (1:55)
Making Tests Mutually Independent (4:10)
DRY vs. DAMP (11:58)
Summary (2:34)
Slides
2. Unit Testing State Machines
What is a State Machine? (2:50)
Unit Testing State Machines: The Problem (7:07)
Potential Solutions to Unit Testing State Machines (6:48)
The Solution to Unit Testing State Machines (4:12)
Recap: Unit Testing State Machines (5:57)
Summary (2:00)
Slides
3. Unit Testing Basic CRUD Applications
CRUD Applications (1:19)
The Sample CRUD Application (4:49)
Refactoring Towards a Rich Domain Model (3:30)
Recap: Refactoring Towards a Rich Domain Model (4:36)
Test Coverage Analysis (5:47)
Summary (1:45)
Slides
4. Working with Unmanaged Dependencies
Introduction (9:00)
Sample Project (4:48)
Creating Adapters for Unmanaged Dependencies (9:32)
Recap: Creating Adapters for Unmanaged Dependencies (1:51)
Creating an Adapter for the Message Bus (3:03)
Recap: Creating an Adapter for the Message Bus (3:08)
Testing the Message Bus (5:10)
Recap: Testing the Message Bus (2:37)
Testing the Locations API (5:16)
Recap: Testing the Locations API (1:40)
Summary (1:17)
Slides
Teach online with
The Solution to Unit Testing State Machines
Lesson content locked
If you're already enrolled,
you'll need to login
.
Enroll in Course to Unlock