Acceptance criteria and Given/When/Then
The conditions an item must meet to do what the user needs, written so anyone can check them.
What it is
Acceptance criteria are the specific, testable conditions something must meet to be accepted. They answer: how will we know this is done and right?
When to use it
For every item before it is selected in Sprint Planning. Different from the Definition of Done, which applies to all items.
Why it works
They remove ambiguity before work starts, give testers something to check, and stop arguments at the end about whether something is finished.
Do
- Five to eight criteria per item is usually plenty; more suggests the item should be split.
Don't
- Confusing them with the Definition of Done.
- Writing them alone and handing them over.
Step by step
- Write them before the work starts Together with the people who'll use and build it.
- Make each one testable Yes or no, not “user-friendly”.
- Cover the important cases The normal case, edge cases, errors and limits.
- Keep them about the result What, not how it's built.
- Use a clear format A simple list, or Given / When / Then: Given a situation, When something happens, Then this result.
- Check them at the end Accept only when every criterion is met.