Sub topic 14
Handing a Game Feature Spec to QA
This chapter assumes you understand the feature’s design intent, mechanics, edge cases, tuning values, and acceptance criteria. The goal now is to make the spec useful for quality assurance (QA), the discipline that checks whether the implemented feature behaves as intended.
Turn the spec into a test plan
QA should be able to answer three questions without asking the designer:
- What behavior is required?
- What conditions must be set up?
- What result proves the behavior works?
Acceptance criteria should describe observable behavior, not implementation details. A criterion such as “the dash uses the movement controller” is difficult to test directly. “The player moves in the input direction for 0.2 seconds” is observable.
A useful handoff connects each requirement to one or more test scenarios.
Feature: Dash
Scenario: Dash in the input direction
Given the player is on the ground
And the dash is not on cooldown
When the player presses Dash while holding right
Then the player moves right at the dash speed
And the dash lasts for the configured duration
Scenario: Dash is blocked during cooldown
Given the player dashed less than the cooldown time ago
When the player presses Dash
Then no dash starts
Scenario: Damage cancels a dash
Given the player is dashing
When the player takes damage
Then the dash ends immediatelyThe Given lines define setup, When describes the action, and Then states the expected result. This format is often called Given/When/Then. It can be automated, but it is also useful as plain-language test documentation.
Include the information QA needs
A QA handoff should identify the build, test map or level, required configuration, and any setup steps. State whether the feature is behind a debug option or feature flag. List the controls and any required test assets.
Record values that affect expected behavior:
| Item | Example | Why QA needs it |
|---|---|---|
| Build | `0.8.0-feature-dash` | Identifies the version under test |
| Test location | Movement Test Room | Provides a repeatable setup |
| Dash duration | `0.2 seconds` | Defines expected timing |
| Cooldown | `0.8 seconds` | Defines when reuse is allowed |
| Debug tools | Damage button enabled | Makes edge cases reproducible |
Separate required checks from exploratory testing. Required checks confirm acceptance criteria. Exploratory testing asks what happens in combinations that the criteria do not explicitly cover, such as dashing into a wall while carrying an object.
Make failures reproducible
A good spec tells QA what evidence to collect when a test fails:
- Build number and platform
- Steps to reproduce
- Expected result and actual result
- Video, screenshot, or log
- Reproduction frequency
- Relevant configuration values
Define boundaries precisely. If a dash cooldown is 0.8 seconds, specify whether pressing Dash at exactly 0.8 seconds should work. Boundary cases often reveal timing bugs.
Show the handoff flow
Review the handoff together
Before implementation reaches formal QA, the designer, engineer, and QA representative should review the criteria. Resolve unclear terms, missing setup details, and conflicting requirements. Mark each criterion as accepted, changed, or deferred.
When the feature changes after sign-off, update both the spec and its test scenarios. Otherwise, QA may test an obsolete rule or miss a newly introduced edge case.
Exercise
An acceptance criterion says, “The ability should feel responsive.” How should you rewrite it for QA?
Show answer
Replace it with observable conditions, such as: “Given the ability is available, when the player presses the button, then the ability begins within the configured input-response limit and displays its activation effect.”