Production Testing¶
Choose the cheapest trustworthy evidence for each failure, from local logic to contracts, load, and production behavior.
flowchart LR
J[Junior: focused tests] --> M[Middle: test boundaries] --> S[Senior: risk strategy] --> P[Professional: quality systems]
flowchart LR
Unit --> Integration --> Contract --> EndToEnd --> Production
Properties[Property tests] --> Unit
Load[Load tests] --> Production
| Level | Guide | You are done when |
|---|---|---|
| Junior | Test behavior | You can test normal, edge, and failure behavior reliably. |
| Middle | Test boundaries | You can choose doubles, integration, contract, and acceptance tests. |
| Senior | Design a risk strategy | You can cover compatibility, load, data, and production risk. |
| Professional | Build quality capability | You can govern test architecture, environments, and feedback. |
Practice rule¶
Start from the failure you need to detect, then choose the lowest test level that can detect it faithfully.