TDD Principles Quiz
Apply the TDD cycle — Red-Green-Refactor — to drive better software design. Covers triangulation, outside-in TDD, BDD, and working with legacy code.
Test: TDD Principles Quiz
Scenario questions with explanations that show exactly where your model of it breaks.
Reading Test-Driven Development is free. Pro unlocks the other four modes on all Testing Engineering topics, so you can go from understanding it to building it.
- SeeThe architecture as diagrams, so you can hold the whole system in your head.
- AnimateStep through the flow one stage at a time and watch the data move.
- TestScenario questions with explanations that show exactly where your model of it breaks.
- BuildA guided implementation with code you can run and adapt for production.
Continue reading
All Testing Engineering articles →Mocking Patterns: Stubs, Spies, Fakes, and When Not to Mock
Master test double patterns — distinguish stubs from mocks, use Vitest module mocking, implement MSW for HTTP, and avoid over-mocking that hides real bugs.
Test Architecture Strategy: Pyramid, Trophy, and CI Optimization
Design a scalable test architecture — apply the test pyramid and testing trophy, set meaningful coverage thresholds, and optimise CI pipeline execution time.
Snapshot Testing: When and How to Use toMatchSnapshot
Use snapshot testing effectively — understand inline vs file snapshots, handle dynamic values, avoid snapshot bloat, and know when snapshots add real value.
Discussion
Sign in to share your feedback and join the discussion.

