This chapter treats a test as an experiment: it runs a program on chosen inputs in a stated environment and uses an oracle, a rule that decides whether an output is correct, to report pass or fail. The first entries describe the levels of testing, from unit tests §10.1 through integration and system tests §10.3 to regression tests §10.4, and oracles that work without knowing the exact expected output, as in differential, property-based and metamorphic testing §10.8. The largest group covers fuzzing §10.9, the automatic generation of very many inputs in search of crashes and other failures: mutation-based, generation-based and coverage-guided fuzzing §10.12, the harness that connects a fuzzer to the code under test, seed corpora and their minimization, dictionaries, structure-aware mutation §10.17, and the coverage measures that guide the search. Sanitizers §10.21, which add run-time checks that turn silent memory, arithmetic and concurrency §9.1 errors into reported failures, and two widely used fuzzing tools complete this part.
The second half asks how to choose tests and what passing them establishes. It covers fault injection §10.28, negative and positive controls §10.30, boundary values, equivalence partitioning §10.32, exhaustive enumeration §10.33, model-based testing §10.34, and the stand-ins for real components called mocks, stubs and fakes. It then treats tests that involve real hardware or nondeterminism: hardware-in-the-loop testing §10.36, deterministic replay §10.37, nondeterministic tests §10.38, and delta debugging §10.39, which shrinks a failing input to a small one that still fails. The final entries separate coverage from correctness and show how test results become an argument: assurance cases §10.41, revalidation when a dependency, or a dependency of a dependency, changes, independent review §10.44, and mutation testing §10.45, which checks whether a test suite would notice a deliberately changed program.