Engineering practiceLearning library

Software testing

Learn tests as evidence about observable behavior and risk. Classical techniques such as boundary analysis are combined with current test-runner and browser-tool workflows; passing tests are never presented as proof that all faults are absent.

Intermediate12 chapters11 practice questions5 references
Start coursePractise questions

Get an in-app notice when new lessons or practice are added.

12 chapters across 4 modules

Course chapters

Explore all 12 chapters in any order. Each chapter has learning goals, a practice prompt, and a primary reference; expanded reading pages are linked from their chapter titles.

01 · Behavior and test design3 chapters
  1. Behavior and boundaries

    Turn a requirement into examples that can expose a real defect.

    • Specify outcomes independently of implementation structure

    Practice: Derive normal, empty, invalid, and boundary cases from a shipping-cost contract.

    Read the primary referenceExpanded reading · Ready
  2. Equivalence classes and decision tables

    • Reduce redundant inputs while covering distinct behavioral conditions

    Practice: Build a decision table for a login policy using synthetic accounts.

    Read the primary referenceLesson guide · Ready
  3. Assertions and failure explanations

    • Choose assertions that reveal what requirement failed

    Practice: Replace vague truthy assertions with precise observable outcomes.

    Read the primary referenceLesson guide · Ready
02 · Test boundaries and dependencies3 chapters
  1. Unit and integration scope

    • Choose which real dependencies are necessary to expose a risk

    Practice: Test a parser in isolation and a repository adapter against a disposable local database.

    Read the primary referenceLesson guide · Ready
  2. Fixtures, cleanup, and isolation

    • Keep test setup explicit and release resources after failures

    Practice: Create isolated temporary files and prove cleanup runs on an assertion failure.

    Read the primary referenceLesson guide · Ready
  3. Fakes, mocks, and contract checks

    • Use test doubles without inventing behavior the dependency cannot provide

    Practice: Compare a fake storage adapter against the same behavioral contract as a real adapter.

    Read the primary referenceLesson guide · Ready
03 · User journeys and asynchronous systems3 chapters
  1. Accessible selectors and user actions

    • Find controls by roles and labels that users can understand

    Practice: Automate keyboard navigation through a search and results flow.

    Read the primary referenceLesson guide · Ready
  2. Waiting for conditions rather than time

    • Synchronize a test with an observable state change

    Practice: Replace a fixed sleep with an assertion on loading completion.

    Read the primary referenceLesson guide · Ready
  3. Failure paths and resilience

    • Exercise rejected operations, empty results, and retry behavior

    Practice: Test an API failure and ensure a retry neither duplicates work nor loses input.

    Read the primary referenceLesson guide · Ready
04 · Quality evidence in delivery3 chapters
  1. Property-based and metamorphic reasoning

    • State a general invariant when expected outputs are expensive to list

    Practice: Test sort invariants and a serialization round trip with generated inputs.

    Read the primary referenceLesson guide · Ready
  2. Flakiness, coverage, and mutation thinking

    • Separate execution coverage from a test’s ability to detect a defect

    Practice: Investigate a flaky timing test and identify a change the current assertions would miss.

    Read the primary referenceLesson guide · Ready
  3. Build a risk-based quality plan

    • Connect important user risks to checks and evidence

    Practice: Deliver a tested learning-search journey, a small failure report, and explicit untested risks.

    Read the primary referenceLesson guide · Ready

Learn it. Check it. Try again.

11 original questions with worked explanations and source references. Filter by difficulty, revisit mistakes, and save your attempt as you go.

Open Software testing practice

Books & references

Free reading at the publisher or author’s site. External materials keep their own licenses.