Sub topic 14
Handing the Spec to QA
This chapter assumes you can already write rules and edge cases for a feature, and that you know the basics of Given/When/Then acceptance criteria. Here the focus is the handoff itself: what QA needs from the spec, how QA turns it into a test plan, and where handoffs usually break.
Why the handoff is its own step
QA is the discipline that checks the built feature against the spec. A spec that engineers can build from is not automatically one QA can test. Engineers can ask a designer a quick question while coding. QA often works from the document alone, sometimes weeks later, on a build the designer has not touched.
A good handoff gives QA four things:
- The intended behavior, in rules that can be checked.
- The acceptance criteria that define "done."
- The tuning values, so QA knows which numbers to expect.
- A list of what is out of scope, so QA does not file bugs for features nobody promised.
The acceptance criteria are the main input. Each one is a statement that can be observed as true or false in the build, which is what lets QA turn it into a test.
From acceptance criteria to test cases
An acceptance criterion says what must be true. A test case says how to check it. QA usually adds the steps, the setup, and the data.
Take the dash spec's criterion:
Scenario: Dash is blocked during cooldown
Given the player has dashed less than the cooldown time ago
When the player presses Dash
Then no dash startsQA reads the cooldown from dash_tuning.yaml, which is 0.8 seconds. From that, QA derives several concrete cases:
| Case | Setup | Action | Expected result |
|---|---|---|---|
| Press at 0.1 s after dash | Player grounded, one dash done | Press Dash | No dash |
| Press at 0.79 s after dash | Same | Press Dash | No dash |
| Press at 0.81 s after dash | Same | Press Dash | Dash starts |
| Press during the dash itself | Mid-dash | Press Dash | No second dash |
The cases at 0.79 s and 0.81 s test the boundary of the rule. Bugs cluster at boundaries, so a spec that states exact values lets QA aim at them. If the spec had said only "a short cooldown," QA would have no boundary to test.
Tracing criteria to rules
Every rule in the spec should be covered by at least one acceptance criterion, and every criterion should map to at least one test case. Keeping this mapping visible is called traceability. A simple table is enough:
| Spec item | Acceptance scenario | Test cases |
|---|---|---|
| Rule 1: dash in input direction | Dash in the input direction | T-01, T-02 |
| Rule 3: cooldown | Dash is blocked during cooldown | T-03 to T-06 |
| Edge case: damage cancels dash | Damage cancels a dash | T-07 |
| Edge case: wall ends dash | None | Gap |
The last row shows why the table is useful. The wall edge case has no scenario, so nobody is guaranteed to test it. Finding this gap during handoff is much cheaper than finding it after release.
What QA needs beyond the happy path
Acceptance criteria usually describe expected behavior. QA also tests combinations the spec never mentioned. You can help by listing the areas where the feature touches other systems.
For the dash, those areas include:
- States: dashing while jumping, falling, stunned, or in a cutscene.
- Input: pressing Dash and Jump on the same frame, or holding the button.
- Environment: dashing into a moving platform, a one-way platform, or a gap.
- Technical: low frame rate, since duration and speed interact with frame time.
You do not need to write a scenario for each. A short "areas of risk" section in the spec points QA at the interactions most likely to fail. It also exposes unanswered questions. If the open question "Can the player dash while carrying an object?" is still open at handoff, QA cannot decide whether the observed behavior is correct.
Test types the spec should support
Different test types need different things from the spec.
- Functional tests check that the rules work. They need rules and acceptance criteria.
- Regression tests check that later changes did not break the feature. They need stable, repeatable scenarios, so criteria written as Given/When/Then are good candidates for automation.
- Exploratory testing is unscripted play to find problems nobody predicted. It needs the design intent, since a tester who knows the dash should "feel responsive and skillful" can report that it feels sluggish even when every rule passes.
- Performance and platform tests need constraints, such as target frame rate and supported hardware.
Notice that design intent matters here. Acceptance criteria can pass while the feature still fails the player experience. Handing QA the intent lets them report that gap.
Classifying what QA finds
When QA reports a problem, someone has to decide who owns it. Three outcomes are common:
- The build does not match the spec. This is a bug. Engineering fixes the build.
- The build matches the spec, but the spec is wrong or incomplete. The designer updates the spec, then the build changes.
- The spec does not say. The designer decides, records the answer in the spec, and QA retests.
Agree on this triage before testing starts. Without it, reports bounce between engineers and designers, each saying the other owns the problem. The second and third outcomes feed the versioning process covered in the change management chapter, so every spec change that comes from testing should be recorded there.
A handoff checklist
Run through this list before telling QA the spec is ready:
- Every behavioral rule has at least one acceptance scenario.
- Every edge case has a scenario or is explicitly marked as exploratory.
- Tuning values are in a data file and referenced by name, not copied into scenarios.
- Scope states what is out, such as dash attacks and upgrades.
- Open questions are resolved or marked as excluded.
- Areas of risk are listed.
- QA knows where the spec lives and who answers questions.
Referencing tuning by name keeps scenarios valid when numbers change. A scenario that says "after the cooldown time" stays correct if the cooldown moves from 0.8 to 0.6 seconds. A scenario that says "after 0.8 seconds" silently becomes wrong.
Common handoff mistakes
- Handing off too late. If QA first sees the spec when the build arrives, they have no time to plan. Share the draft acceptance criteria early, and let QA review them as part of sign-off.
- Vague expected results. "The dash feels right" cannot be checked. "The player moves at dash speed for the dash duration" can.
- Missing test data. QA needs to know how to reach the state, for example a debug command that grants air dashes or removes cooldowns.
- Treating QA as a gate only. QA reviewers often catch ambiguity in the spec before any code exists. Ask them to read the draft and list what they could not test.
Exercise
A spec rule says "The player cannot dash while a dash cooldown is active." The tuning file sets the cooldown to 0.8 seconds. Write three test cases that target the boundary of this rule, and name one reason to reference the cooldown by name in the acceptance scenario instead of writing 0.8.
Show answer
Three boundary cases: (1) press Dash 0.79 seconds after the previous dash, and expect no dash; (2) press Dash 0.81 seconds after the previous dash, and expect a dash to start; (3) press Dash during the dash itself, and expect no second dash. Referencing the cooldown by name keeps the scenario correct when designers change the value in the tuning file, so the spec does not need rewriting and QA does not test against an outdated number.
Exercise
During testing, QA reports that the player can dash while holding a crate. The spec's open questions list "Can the player dash while carrying an object?" with no answer. Which of the three triage outcomes applies, and what should happen next?
Show answer
The spec does not say, so this is the third outcome. The designer decides the intended behavior, records the decision in the spec (and removes it from open questions), and notifies engineering and QA. If the decision differs from the current build, engineering changes the build. QA then retests against the updated spec and adds a scenario for the new rule.