Testing
Cheat sheet · https://pcornel.dk/topic.php?topic=5924
Answer
Testing exercises automation behavior against explicit expectations under controlled scope so defects, regressions and unsafe assumptions can be found before or after deployment without equating a green suite with universal correctness.
Remember
- Tests passed ≠ untested risk absent.
- Test coverage percentage ≠ behavioral correctness.
- Environment parity claimed ≠ production equivalence proven.
- Automated test success ≠ test oracle itself is correct.
First checks
- Test pyramid (unit, integration, e2e) — coverage
pytest / Invoke-Pester / molecule test— test runners- CI runs tests on every change — automation
Verify in this order
change → tests → merge → deploy
Where it usually breaks
Testing proves observed behavior only for the exercised cases, oracle, environment and versions; it cannot prove absence of defects outside that tested space.
Automation/controller success is not target-state proof; target config/state is not effective-runtime proof; effective state is not workload proof.
Testing testing proof-boundary map
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Scope / oracle | Requirement, case, expected result and exercised scope are explicit | A generic green status exists without a trustworthy oracle or coverage boundary |
| Fixture / environment | Data, dependencies and environment versions are reproducible | Shared state, floating versions or stale fixtures make results non-reproducible |
| Effective outcome | Authoritative state/read-back and service-relevant evidence match the expected result | Tool/test/validator success substitutes for effective target or workload proof |
| Limits / next action | Coverage limits, unknowns and failures drive the next narrower check | Unknown evidence becomes pass, retries hide failures or broad success is inferred from one check |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5924