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
23 modules

Take modules in any order. The route suggests one that builds up naturally.

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.

end-to-endintegration · contractunit testschoose cases · mix sizesqualityproperties · perfCI on every changeexplore · roll outthe safety nets around every change

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.

kg <= 0 → kg < 0
kg - 2 → kg + 2
if (express) → if (true)
f * 2 → f + 2
if (express) f = f * 2; → (line removed)

4 planted bugs would slip past these tests.

01

Foundations

What a test is, and what it is for.

4 modules · 85 min

02

Unit testing

Fast, focused tests of small pieces.

4 modules · 90 min

03

Beyond units

Testing how the pieces fit together.

4 modules · 95 min

04

Test quality

Knowing whether your tests are any good.

4 modules · 90 min

05

Advanced techniques

Finding the bugs you didn't think of.

3 modules · 75 min

06

Testing in the team

Tests in the daily flow of work.

3 modules · 60 min

07

Capstone

Put it all together.

1 module · 35 min