References · Tools and tests#
The ideas behind the test harness, the mutation checks and the sanitizers used across this repo.
5 works · difficulty: ★☆☆ accessible · ★★☆ technical · ★★★ research-grade
Read with the three-pass method. Every link is a Google Scholar search for the exact title. Master index →
Testing as a discipline#
★★☆ QuickCheck: a lightweight tool for random testing of Haskell programs#
Claessen & Hughes · 2000 · ICFP · paper · Scholar ↗
- Why: Property-based testing: state invariants and test them on random inputs. The Mark XI tests (
log(exp(ξ)) = ξfor 10k random twists) are exactly this. - Read: Sections 1–3.
★★☆ Hints on test data selection: Help for the practicing programmer#
DeMillo, Lipton & Sayward · 1978 · IEEE Computer · paper · Scholar ↗
- Why: The origin of mutation testing: plant a bug and check that your tests catch it. That's how every suite in this repo was validated.
- Read: All of it.
★★☆ An analysis and survey of the development of mutation testing#
Jia & Harman · 2011 · IEEE Transactions on Software Engineering · paper · Scholar ↗
- Why: A survey of mutation testing: operators, equivalent mutants and the cost trade-offs.
- Read: Sections 1–3.
Tools that find bugs for you#
★★☆ AddressSanitizer: A fast address sanity checker#
Serebryany et al. · 2012 · USENIX ATC · paper · Scholar ↗
- Why: How AddressSanitizer works: shadow memory and redzones. Behind
make SAN=1. - Read: Sections 1–3.
★★★ CDSChecker: checking concurrent data structures written with C/C++ atomics#
Norris & Demsky · 2013 · OOPSLA · paper · Scholar ↗
- Why: Exhaustive exploration of C/C++11 atomic interleavings, the idea behind Rust's
loom(Mark III). - Read: The introduction and the algorithm overview.