What is an acceptance criterion and why write one?
An acceptance criterion is a measurable condition a software feature must meet to count as "done". If none is written, the customer says "this is not what I expected" and the developer says "you did not ask for it"; acceptance criteria end this argument at the start of the project. They are also a shared yardstick at testing and delivery.
A common method for writing acceptance criteria is the Gherkin language. According to Cucumber's documentation, acceptance criteria are conditions that a product must satisfy to be accepted by a user, customer or other stakeholder, and are best written using the Cucumber language and Gherkin syntax. The template rests on the trio Given (the situation), When (the action) and Then (the expected result) (Gherkin reference).
Five traits of a good acceptance criterion
The following is the author's general good-practice list:
| Trait | Bad example | Good example |
|---|---|---|
| Measurable | "The system should be fast" | "The order list opens in 3 seconds with 1,000 records" (your project sets the value) |
| Unambiguous | "User-friendly screen" | "An order line can be added in at most two clicks" |
| Testable | "It should work without errors" | "An invalid tax number rejects the record and shows an error message" |
| Complete | Only the happy path | Error and edge cases are written too |
| In the user's language | Technical terms | A sentence the business side understands |
Sample template: a dealer order
An example in Gherkin form for an "place an order" feature on a dealer portal:
Feature: Dealer order
Scenario: An order within the limit is placed
Given the dealer's available account limit is 50,000 TL
And the basket total is 20,000 TL
When the dealer presses "Confirm order"
Then the order is created
And the order is passed to the ERP
Scenario: An order over the limit goes for approval
Given the dealer's available account limit is 10,000 TL
And the basket total is 20,000 TL
When the dealer presses "Confirm order"
Then the order is saved with the status "Awaiting approval"
And a notification goes to the sales manager
Gherkin keywords can be used in English (Given, When, Then) or in translated form; what matters is the team's shared format. The figures are only examples.
How to write acceptance criteria: steps
- Start the feature from the user's goal. "As a dealer, I want to repeat my order quickly."
- Write the happy path. What should happen when everything goes well?
- Add error and edge cases. Empty basket, insufficient stock, limit breach, unauthorised user.
- Put numeric thresholds. Write limits such as time, quantity and amount as numbers (your business sets the values).
- Have business and software sides read it together. Make sure both understood the same thing.
- Know how each criterion will be tested. A criterion that cannot be tested cannot be accepted.
The link with the contract and delivery
Acceptance criteria should be tied to the delivery and acceptance clause of the software contract: which list is the acceptance yardstick, who runs the acceptance test, how quickly are defects fixed, and what is the deemed-acceptance period? Contract details are a legal matter; consult your legal adviser and see our post on 10 clauses in a software development contract.
Common mistakes
| Mistake | Result | Fix |
|---|---|---|
| Writing criteria at delivery | The argument comes on delivery day | Write them before development |
| Writing only the happy path | Faulty cases remain | Add error and edge scenarios |
| Vague adjectives ("fast", "easy") | Everyone understands differently | Set a measurable limit |
| The customer does not read them | Later "I did not want this" | Get written approval |
| A very long criteria list | Nobody reads it | 3-7 criteria per feature |
Checklist before you start
| Check | Yes / No |
|---|---|
| Is an acceptance criterion written for every feature? | ☐ |
| Are error and edge cases included? | ☐ |
| Are numbers and times explicit in the criteria? | ☐ |
| Is it clear who runs the acceptance test? | ☐ |
| Has the customer approved the criteria in writing? | ☐ |
| Are criteria linked to the contract's acceptance clause? | ☐ |
Frequently Asked Questions
Who writes acceptance criteria?
The business side states the need and expected outcome; the project team (analyst or developer) turns it into a testable form. A criterion approved by both sides together is the healthiest.
Is using Gherkin mandatory?
No; testable sentences written as a list also work. Gherkin is preferred because it offers a shared format and the option of linking to automated test tools.
What happens if an acceptance criterion changes later?
A change in scope can affect time and cost. The change should be recorded in writing, approved by both sides and tied to the contract's change-management rule.
To write acceptance criteria together and make the delivery process clear in your project, see our custom software development page or the contact form.
Sources: User story (Cucumber), Gherkin Reference (Cucumber)
Cover photo: Alicia Christin Gerald / Unsplash