intermediate · 23 minute study
Make verification reproducible and honest
A passing result on an unknown revision, random state or stale build is difficult to trust and impossible to reproduce reliably.
Useful preparation · 1 prerequisite
Use this as a map, not a lock. If these ideas are familiar, continue.
- Choose the test that can actually prove the claim — One green test is not evidence for every layer of a feature. The right test reaches the boundary where the claimed behavior is enforced.
First, build a mental model
Verification is an evidence record: exact input, candidate, environment, command and observed outcome. A status word without that record is only a claim.
- Inject clocks, random seeds and external results where practical. Deterministic fixtures make a failed expectation explainable rather than intermittent.
- Isolate storage and cleanup by test. Tests that depend on execution order can pass in one run and fail in another.
- Record the tested revision and actual command/exit status. A skipped or blocked subcheck must remain skipped or blocked, even if an outer script exits zero.
- Visual results also depend on browser, platform, fonts and viewport. Changing a baseline is a reviewed product decision, not an automatic way to make a test green.
function isExpired(expiresAt, now) {
return now >= expiresAt;
}
const fixtureNow = 1000;
console.log(isExpired(1000, fixtureNow)); // true
console.log(isExpired(1001, fixtureNow)); // false
// No wall clock is needed to test the boundary.- Controlled input
The test chooses the instant rather than waiting for real time to pass.
- Boundary
Exactly at expiry is expired; one unit before expiry is not.
- Reproducibility
The same inputs give the same answers on the next run.
Production thinking
Take this beyond the example.
A release note should tell a reviewer exactly which revision was tested and what remains unknown. Prefer a small trustworthy evidence set over a long list of unexecuted commands.
Sources and further reading
Your evidence
unseen is a local learning signal, not a credential or proof of production competence.
Explain the mental model, then explicitly acknowledge it. Opening a page is not evidence.
Supported retries can complete this lesson. Independent evidence and delayed review determine the skill stage.
Next lesson · Authorize the actual resource on every entry path →