Typorithm · medium

15. Regression selection and honest release reporting

qatestingtest-designindependent-practice
Saved on this device
Full lesson · 4 learning steps Open any exercise for focused practice
1

Step 1 of 4 · intro card

15. Regression selection and honest release reporting

0%

Concept and contract

Report what was checked, what failed and what remains unknown.

A regression set should follow the changed behavior and important neighboring risks. For a combined-filter change, include the new conjunction, each individual filter and an empty result. Re-running unrelated checks can consume time while leaving the changed contract poorly observed.

State the decision context and unresolved risks. A test report supports a release decision; it does not turn a finite suite into proof that no defects remain. Keep passed, failed, blocked and not-run outcomes distinct.

Mechanism and worked example

The worked report has ten planned checks: seven passed, one failed, one blocked and one not run.

The worked report has ten planned checks: seven passed, one failed, one blocked and one not run. The pass rate among executed checks is seven of eight, while execution coverage is eight of ten. These answer different questions and must not share an unlabeled percentage.

Blocked and not-run checks still represent missing evidence. Do not add them to passed because the suite completed its command. Describe the reason and affected risk so a reviewer can decide whether the missing evidence is acceptable.

Complete worked example

json

{
  "planned": 10,
  "passed": 7,
  "failed": 1,
  "blocked": 1,
  "notRun": 1,
  "executed": 8,
  "passRateOfExecuted": 0.875,
  "executionCoverage": 0.8
}
Reasoning
The two ratios use different named denominators and retain every planned outcome.

Counterexamples and common mistakes

The weak report calls the release 100 percent tested because every executed passing check is listed and failures are omitted.

The weak report calls the release 100 percent tested because every executed passing check is listed and failures are omitted. A denominator that silently changes can make an incomplete investigation look comprehensive. Preserve the planned scope and all outcome categories.

Avoid equating assertion count with coverage of requirements. One hundred similar assertions may all target one successful path. Connect important checks to named risks and keep the claim proportional to the actual evidence.

Counterexample: what this check misses

json

{
  "passed": 7,
  "reportedPassRate": 1,
  "omitted": [
    "failed",
    "blocked",
    "not run"
  ]
}
Reasoning
Omitting failures and missing evidence creates a misleading report.

Independent practice: small task

Write a report for twelve planned checks: nine passed, one failed, one blocked and one not run.

Write a report for twelve planned checks: nine passed, one failed, one blocked and one not run. Calculate executed count, pass rate among executed and execution coverage. Begin with the counts before formatting any percentage.

Add a short release note identifying the failed risk and missing evidence. Optional extension: define a project-specific release threshold. Do not claim that one numerical threshold should decide every release regardless of severity.

Step 1: Reconcile all twelve planned outcomes. Step 2: Calculate and label both denominators.

Practice starter: solve before reading the solution

json

{
  "planned": 12,
  "passed": 9,
  "failed": 1,
  "blocked": 1,
  "notRun": 1,
  "executed": "TODO",
  "passRateOfExecuted": "TODO",
  "executionCoverage": "TODO"
}
Reasoning
Add passed and failed to obtain executed before calculating ratios.
  • Hint 1: A failed check was executed.
  • Hint 2: Blocked work is missing evidence, not success.

Solution, tests and trade-offs

The solution reports ten executed, a 90 percent executed pass rate and approximately 83.33 percent execution coverage.

The solution reports ten executed, a 90 percent executed pass rate and approximately 83.33 percent execution coverage. It keeps the failing check visible. The arithmetic is reproducible, but the release decision still depends on impact and context.

The verifier checks the denominators and rejects a calculation that counts blocked checks as executed successes. A reviewer assesses whether the accompanying risk explanation supports the chosen action. Numeric correctness alone cannot make that judgment.

Practice solution and acceptance checks

json

{
  "planned": 12,
  "passed": 9,
  "failed": 1,
  "blocked": 1,
  "notRun": 1,
  "executed": 10,
  "passRateOfExecuted": 0.9,
  "executionCoverage": 0.8333333333333334,
  "decision": "Review the failed risk and missing evidence before deciding; percentages alone are insufficient."
}
Reasoning
The arithmetic supports a decision but does not replace risk judgment.

Interview reasoning and next step

In interviews, explain two different denominators and why blocked work matters.

In interviews, explain two different denominators and why blocked work matters. Describe how you would select regression checks for one concrete change. Avoid presenting a green dashboard as a universal release guarantee.

The foundations capstone now combines requirements, data selection, API observations and a concise report around one small local catalogue.

Optional stretch — after the core task works: Propose a threshold for one explicit risk context.

Computer practice: download the companion lab at https://applydjinn.com/typorithm/qa-lab-20261105.zip. Read its README, install the pinned tools and run the accepted examples before attempting a starter. The mobile reader preserves your reading and self-check progress; the local lab runs browser tests separately.

Report what was checked, what failed and what remains unknown.