An Acceptance Criteria Library

Acceptance criteria are usually written per story, badly, at the last minute. This is a library of reusable patterns that a team can apply in a minute and a tester can automate.

Method, template and tooling. The scope, the artefacts and the operating rules are described for reuse across engagements.

Snapshot
Client
Multiple Sectors
Sector
IT Consulting and Auditing Services
Engagement
Method, template and tooling
Scope
Patterns · examples · anti-patterns · automation hooks
Duration
Maintained quarterly
Status
In use on every engagement of this type
18
criteria patterns covering most of what a business system does.
1
shared vocabulary between business, build and test.
70
per cent of criteria now start from a pattern, not a blank page.
0
stories accepted with “works as expected” as the criterion.

The failure it prevents

“Works as expected” is not a criterion. It defers the definition of done to the demonstration, where the loudest person in the room decides, and it makes automated testing impossible because there is nothing to assert.

A library fixes this by making the first draft cheap. Most requirements in a business system are one of eighteen shapes — a permission, a limit, a state change, a rejection — and each shape has a known way to be written.

Figure 1 — The shapes that cover most stories

the surfaces in scopePermissionwho may do it, and who may notLimitthe boundary and the messageState changefrom, to, and when it is refusedRejectionwhat the user sees and keepsIdempotencythe same request twiceConcurrencytwo people, one recordEach pattern has a sentence template, a good example, a bad example and a note on how to assert it in a test.

How it is used

A story picks a pattern before it is refined. The pattern supplies the shape of the criterion; the story supplies the specifics. Refinement becomes editing rather than invention, which is the difference between twenty minutes and an hour.

Bad examples are part of the library. Showing a criterion that reads plausibly and cannot be tested teaches more than a rule about writing testable ones.

Figure 2 — A pattern applied to one requirement

Filled exampleTestableAutomatableGivenWhenThenAnda manageryesfixtureapprovesyesapi callrecord is lockedyesassertionan audit entryyesqueryThe four lines are the pattern. The specificity is the story’s job, and it is the only part that changes per requirement.

What it refuses to cover

Visual design. A criterion can assert that a state exists and that a message appears; it cannot assert that a layout is good, and pretending otherwise produces brittle screenshot tests that fail on every font update.

Performance is covered by a single pattern with a number and a percentile, not by a family of criteria. A load test is a different artefact and should not be smuggled into a story.

What we delivered

Patterns
Eighteen shapes
Each with a sentence template, a good example and a bad one.
Vocabulary
Shared by three roles
Business, build and test use the same words for the same behaviour.
Automation
Written to be asserted
Each pattern notes the fixture and assertion it implies, so tests start from the criterion.
Anti-patterns
Named and shown
Plausible-looking criteria that cannot be tested, kept as teaching examples.
Refinement
Pick, then edit
A story selects its pattern before refinement; the session edits rather than invents.
Coverage
Gaps made visible
Stories with no pattern are flagged, because they are usually a requirement nobody understands.

What it changed

Refinement sessions halved in length and doubled in output, and the criteria that come out of them are automatable, which compounds every sprint afterwards.

The library also improved the requirements. Writing a criterion as a pattern exposes a requirement that has no clear owner, or no defined rejection — before it is built.

CONTACT US

We provide a custom made service for just drop us a line.
We would be glad to have feedback from you.