Pcornel
Automation

Testing

Cheat sheet · https://pcornel.dk/topic.php?topic=5924

Back to the Topic

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

BoundaryHealthy evidenceSuspicious evidence
Scope / oracleRequirement, case, expected result and exercised scope are explicitA generic green status exists without a trustworthy oracle or coverage boundary
Fixture / environmentData, dependencies and environment versions are reproducibleShared state, floating versions or stale fixtures make results non-reproducible
Effective outcomeAuthoritative state/read-back and service-relevant evidence match the expected resultTool/test/validator success substitutes for effective target or workload proof
Limits / next actionCoverage limits, unknowns and failures drive the next narrower checkUnknown 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

Confirmation

Confirm action

Continue?