Bookmarks

Acceptance criteria

The conditions under which a user story or a task is considered done and is accepted by the product owner.

Also: acceptance conditions, conditions of satisfaction

checked 9 Nov

All terms

Acceptance criteria are fixed in advance — they state how the result will be verified: before development begins, the customer and the team agree what counts as “done” for a particular story or feature. The work is later accepted against these same conditions, and the tests are written from them.

What they look like

  • concrete and testable: not “the site is fast”, but “a page loads in no more than two seconds with ten thousand users”;
  • known to everyone before the work starts: the product owner writes them together with the team before the story enters a sprint;
  • phrased from the user’s point of view or as a scenario of how the system behaves — so they can be checked manually or by an automated test.

The Given — When — Then format

A popular way to write criteria is a three-step scenario: Given describes the initial state of the system, When the user’s action or an event, and Then the observable result. The scenario is clear to the customer, the developers and the testers alike, and in the Gherkin notation the same scenario runs as an automated test in Cucumber and similar tools.

gherkinAn acceptance criterion for a promo code in the Given — When — Then format
Given a shopper has added an item to the cartWhen they apply the promo code SUMMER10Then the amount due decreases by 10%

Acceptance criteria and the Definition of Done

Each story has its own acceptance criteria: they describe a specific feature. The Definition of Done is common to the whole team and lists what must be done for any piece of work: the code is written, the tests pass, the documentation is updated. A story is considered done when both the common criteria and its own acceptance criteria are met.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • DoDDefinition of Done

    The Definition of Done is one for the whole team and applies to any piece of work, while acceptance criteria are specific to each story and describe exactly its feature.

In depth in the references

where the topic is covered in detail