Pcornel
Automation · Testing

Regression Testing

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

Back to the Topic

Answer

Regression Testing re-executes previously valid behavior and known defect cases after change to detect unintended breakage outside the intended modification.

Remember

  • No regression found ≠ no regression exists.
  • Snapshot/golden output changed ≠ expected behavior changed legitimately.
  • Old test passes ≠ new requirement works.
  • Baseline updated ≠ regression fixed.

First checks

  • Regression test suite — previous bugs
  • Tests added for each fixed bug — prevention
  • Run on every change — CI

Commands

pytest -q <test-path>
Read-only/validation observation for pass/fail result and assertion/error output for the explicitly selected test scope.

Verify in this order

bug fix → regression test → CI

Where it usually breaks

Regression Testing proves the preserved scenarios still behave as expected; its strength is limited by historical coverage, oracle quality and test-environment fidelity.

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Regression 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=5931

Confirmation

Confirm action

Continue?