Skip to content
BENIBIX Learn

Acceptance Test

Development🧪 Testing & QualityTest Types

Also known as Acceptance Testing, Acceptance Tests, Acceptance Criteria Test

A test that checks a feature does what was asked for.

Think of it like

Think of it like checking a cake against the order. Is it the kind the customer asked for?

Example

The task says a shopper can pay with a saved card. The acceptance test logs in, picks the saved card and checks the order goes through.

Why it matters

Code can pass every unit test and still not do what the user wanted. This test asks the real question.

Definition

An acceptance test checks that a feature does what was asked for. It is written from the user's side, not the code's side. Each test matches one rule the feature must meet, called an acceptance criterion. If all the acceptance tests pass, the feature is done. They can be automated or done by hand.
Acceptance tests ask: does it do what was asked?

Common mistake

Writing acceptance tests after the code. Write them first, so everyone agrees on what done means.

Key takeaways

  1. 1
    User's view. Checks what the user asked for.
  2. 2
    Defines done. All pass, feature finished.
  3. 3
    Write it first. Agree on it before coding.

Compare