Drive a small feature with test-driven development

8 steps · about 3 h 20 min · Beginner

  1. Learn the red-green-refactor loop (article, Martin Fowler, 10 min)

    A short, clear statement of the TDD cycle.

  2. See why self-testing code matters (article, Martin Fowler, 10 min)

    Explains the payoff that makes writing tests first worth it.

  3. Work in nano to long TDD cycles (article, Clean Coder Blog, 10 min)

    Describes the second-by-second and minute-by-minute rhythms.

  4. Follow a worked TDD session (article, James Shore, 30 min)

    A detailed walk-through of choosing the next small test.

  5. Apply TDD in a Python project (tutorial, TestDriven.io, 15 min)

    Shows the cycle with pytest and real code.

  6. Build a web app test-first (tutorial, Obey the Testing Goat, 1 h)

    A free book that drives a Django app entirely with tests.

  7. Learn a language by writing tests first (repo, GitHub, 45 min)

    Chapter-by-chapter TDD exercises in Go.

  8. Pick a kata to practise TDD (interactive, Kata-Log, 20 min)

    A catalogue of small problems sized for one session.