Testing Best Practices

Enforce testing best practices when writing, reviewing, or improving tests. Covers Red-Green-Refactor TDD, property-based testing (invariant-proof and model-gap tactics), real objects over mocks, correctness by construction (types and schemas over runtime validation), test quality assessment (assertion density, not just coverage), E2E testing, contract tests, flaky test upgrades, and detection of sabotaged/skipped tests and logical defense-in-depth. Use when writing tests, reviewing test quality, fixing flaky tests, or when the user mentions TDD, testing, coverage, mocks, invariants, types vs tests, defense in depth, or test quality.

adewale Updated
A typographic ledger of the sixteen testing techniques this skill teaches, organised into three tiers — Always (Unit, Smoke, Regression); When triggered (Proper

File contents

adewale/testing-best-practices commit b7a82339e7

Frequently asked questions

npx get-skill add adewale/testing-best-practices-2