Testing
What to test, at which level, and why.
Software testing from first principles, for every developer: why tests pay for themselves, the anatomy of a test, choosing test cases with partitions and boundaries, test shapes from the pyramid to the trophy, unit tests, test doubles, readable tests and test-driven development, then integration, contract, UI and end-to-end tests, coverage, mutation testing, flaky tests and test data, property-based testing and fuzzing, performance tests, legacy code, tests in CI, exploratory testing and testing in production. Vendor-neutral: ideas first, then how JUnit, pytest, xUnit, Jest, Vitest, Go's testing package, Playwright, Cypress, Selenium, Pact, Testcontainers, k6 and others put them into practice. By the end you can decide what to test, at which level, and write tests that catch real bugs without slowing the team down.
- 7
- chapters
- 23
- modules
- ~9h
- of learning
- 23
- live now
Take modules in any order. The route suggests one that builds up naturally.
has a live module in progress complete
Take a look inside
The big picture, before the details
The safety nets around every change: well-chosen unit, integration and end-to-end tests, checks on the tests themselves, CI, exploration and gradual rollout. Watch the tour, or click any part.
Choosing what to test: partitions, boundaries and a deliberate mix of test sizes (modules 1–4).
A taste of module 14: tick tests and watch planted bugs die. Any bug that survives would slip past your tests.
4 planted bugs would slip past these tests.
Foundations
What a test is, and what it is for.
4 modules · 85 min
Unit testing
Fast, focused tests of small pieces.
4 modules · 90 min
Beyond units
Testing how the pieces fit together.
4 modules · 95 min
Core
Integration tests
Real databases, real queues.
Deep dive
Contract tests
Agreeing on an API without meeting.
Core
UI and component tests
Test what the user sees.
Core
End-to-end tests
Whole journeys through the real app.
Test quality
Knowing whether your tests are any good.
4 modules · 90 min
Advanced techniques
Finding the bugs you didn't think of.
3 modules · 75 min
Testing in the team
Tests in the daily flow of work.
3 modules · 60 min
Capstone
Put it all together.
1 module · 35 min