smartyfy.mrindigi.com

Web Development Pro | Lesson 050 | Quality Gate Before Release

Web Development Pro · Lesson 50 of 60

Module 5: Quality, accessibility, and security

In this lesson

Prerequisites and learning outcomes

Complete lesson 49 first. This lesson builds on evidence, risk, and acceptance criteria. By the end, you can assemble a release checklist with honest passed, failed, and untested items. Plan 10–15 minutes for the core explanation and additional time for the worked practice.

Decide what evidence is needed before deciding readiness

A release gate is a set of conditions that must be satisfied before a particular release decision. It connects requirements to evidence. For the learning directory, visitors must be able to reach the schedule, search fictional events, reset filters, understand empty and failed states, and read the access information.

A gate is not a decorative checklist completed after someone has already decided to publish. Write criteria early enough that they influence implementation and testing. “Search works” is vague. “A padded uppercase repair query returns the expected fixture and reset restores all records” gives a reviewer something concrete to reproduce.

Separate passed, failed, and untested

Passed means the stated check was executed against the identified artifact and met its expectation. Failed means an executed check produced an unacceptable result. Untested means no reliable observation is available. Do not convert untested into passed because the code looks plausible or because an unrelated automated suite succeeded.

Use a fourth status such as not applicable only with a reason. A static demo without authentication may mark an authenticated-session journey not applicable. It should not mark keyboard access not applicable merely because no browser was available. Tool limitations explain missing evidence; they do not erase a product requirement.

The supplied gate evaluates required rows conservatively. Every required row must have status passed. An unknown status or missing result blocks readiness rather than being treated as success. This is a local decision model, not an automatic authority to publish anything.

Attach evidence to a specific artifact

Record a version label or checksum, check date, method, expected result, observed result, and evidence location. A screenshot from yesterday's version may no longer describe today's code. If a relevant file changes after testing, identify which checks must be rerun instead of copying the old pass forward automatically.

A checksum helps distinguish byte-for-byte artifacts. It does not prove that the content is correct, safe, or authorized. A broken file can have a perfectly valid checksum. Use identity evidence alongside behavior evidence, not as a substitute for it.

{
  "id": "keyboard-search",
  "required": true,
  "status": "untested",
  "method": "manual browser journey",
  "evidence": "Browser access pending"
}

This row truthfully blocks a release decision that requires keyboard evidence. It does not hide the gap behind a reassuring summary. A reviewer can now decide how to obtain the missing observation rather than discovering the omission after publication.

Organize checks around risks

Content checks cover accurate fictional schedules, clear limitations, useful labels, and working local navigation. Calculation checks cover selection rules and data validation. Integration checks cover state transitions and rendering connections. Manual checks cover actual keyboard behavior, reflow, focus, native controls, and assistive-technology observations where relevant.

Delivery checks cover the correct artifact, base paths, HTTP statuses, content types, HTTPS, and intended caching and security headers. These require an actual hosting environment or an appropriate staging equivalent. A local file check cannot establish a live server's behavior.

Security review covers trust boundaries, safe output, unnecessary external code, credentials, and the backend boundary. A passing title-rendering test is valuable but does not certify the whole application. Phrase the gate in terms of reviewed risks and outstanding issues instead of promising that a small test suite finds every possible vulnerability.

Make blocking criteria explicit

Some defects prevent the core task: search controls unreachable by keyboard, event data never loading, or an unsafe output path. Others may be lower impact, such as a minor spacing inconsistency that does not affect understanding. Prioritize based on user consequence, not on which issue is easiest to fix.

A required row cannot be waived silently. If the project owner accepts a limited release with a known issue, document the exact scope, impact, decision-maker, mitigation, and follow-up. This course does not grant authority for such a release. Its example remains a local educational artifact with manual gates pending.

Avoid averaging away a blocker. Nine passing checks and one critical failure do not produce “ninety percent ready” in a meaningful operational sense. A single inaccessible primary action can prevent an entire group of visitors from completing the task. The gate should reflect that consequence.

Use an evidence matrix that survives handoff

The example gate.json includes two required local checks and two required manual or hosting checks. All rows initially say untested, because a template must not invent evidence. gate.test.mjs uses separate in-memory fixtures to test the decision function for all-pass, failed, untested, missing-status, and empty cases.

Run node --test gate.test.mjs to check that decision logic. Running it does not change gate.json or satisfy the rows. A successful test of the gate evaluator is not a successful evaluation of the real site. This distinction prevents a subtle circular claim: the checklist software works, therefore the project is ready.

When a reviewer executes a real check, they can update the corresponding row with the observed result and evidence reference. Keep the original failure description if a retest resolves it, so the history explains what changed. Do not retain unrelated private data in logs or screenshots.

End with a decision and the next concrete step

A useful conclusion could be: “Local calculation and static checks passed for version A. Keyboard and hosting checks remain untested, so publication readiness is not established. Next, complete the listed browser journey in an available environment.” It states what is known and what action would close the gap.

If a release is authorized later, repeat the appropriate smoke checks against the actual destination and verify the exact delivered version. Keep a rollback plan before proceeding. Quality gates support a responsible decision; they do not replace permission, hosting configuration, or post-release observation.

Worked practice

Worked exercise 1: Classify missing browser evidence

Task: Unit tests pass, but keyboard testing could not run. Worked answer: mark the unit rows passed with their exact scope and the keyboard row untested. If keyboard access is required, the overall gate remains blocked until that evidence exists or an explicitly documented scope decision changes the release plan.

Worked exercise 2: Reject a misleading percentage

Task: Nine checks pass and the only search button cannot be reached. Worked answer: treat the core-task barrier as blocking instead of summarizing ninety percent success. Explain which users and task are affected, then fix and retest the control sequence.

Worked exercise 3: Refresh stale evidence

Task: A renderer changes after its tests passed. Worked answer: identify the affected rendering and interaction cases, rerun them against the new artifact, and update the evidence version. A previous pass belongs to the version that was actually checked.

Knowledge check

Question 1

What does untested mean? A) A check passed informally. B) No reliable executed observation is available. C) The requirement is irrelevant. D) The defect is harmless.

Check question 1: answer and explanation

Answer: B. It describes an evidence gap, not a success or scope decision.

Question 2

What does a checksum establish? A) Artifact byte identity. B) That the identified artifact satisfies its intended behavior. C) That the live server is currently serving the intended bytes. D) That required manual checks were performed on the artifact.

Check question 2: answer and explanation

Answer: A. Identity is useful but does not prove behavior or authority.

Question 3

Which issue should block this directory's core journey? A) An optional decorative color preference. B) A documented nonessential wording choice. C) A search control unreachable by keyboard. D) A different source-file ordering.

Check question 3: answer and explanation

Answer: C. It prevents an important task for keyboard users.

Question 4

What does the evaluator's passing test suite prove? A) The site is live. B) Every gate row has real evidence. C) All manual checks passed. D) The tested decision logic handles its fixture cases.

Check question 4: answer and explanation

Answer: D. Testing the evaluator does not execute the site's checks.

Question 5

What should follow a relevant code change? A) Reuse all previous passes without review. B) Rerun affected checks against the new version. C) Keep old evidence labels while replacing the artifact bytes. D) Mark the affected checks passed because unrelated tests still succeed.

Check question 5: answer and explanation

Answer: B. Evidence must describe the artifact being considered for release.

Sources and further reading