> ## Content Index
> Fetch the complete content index at: https://playbooksforleaders.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Specification by Example
- URL: https://playbooksforleaders.com/delivery-execution/112-specification-by-example/
- Published: 2026-07-11T14:49:51.000Z
- Updated: 2026-11-16T17:48:55.000Z
- Description: Gojko Adzic's approach, where concrete examples become automated tests.
- Author: Will Rowan
- Tags: #delivery-execution, #lang-en

## What is specification by example?

Specification by Example is Gojko Adzic's approach where concrete examples serve triple duty as requirements, documentation, and automated tests. You write Given-When-Then scenarios collaboratively (business and technical people together), forcing the precision that natural language lets everyone avoid.

The requirement looked clear. Development built what they understood. Testing found it wasn't what the stakeholder meant. Everyone's pointing at the same sentence and reading it differently.

![A five-step horizontal flow headed "Could you write three concrete examples?" with numbered stages 01 DEMAND (Given X, when Y, then Z), 02 REFUSE, 03 RUN, 04 BUILD, and 05 REJECT, above the line "Vague ideas die at the spec stage. Concrete or no."](https://playbooksforleaders.com/assets/img/tool-visuals/112-specification-by-example.svg)

Method visual: Specification by Example

## When should you use specification by example?

The unique strength is closing the gap between what stakeholders want, what developers build, and what testers verify. The examples become living documentation that stays accurate because it's executable: it can't go stale the way a specification document does.

Reach for it when ambiguity in requirements is causing rework. It falls apart without automation capability to keep the examples running, and it's wrong for exploratory work where the team is still discovering what the feature should do.

**Your next move:** *Could your team write three concrete examples of the next feature working correctly before they start building it, and if not, is the requirement actually clear, or just clear enough to misinterpret in different ways?*

### What it looked like for them

**Mark Barwald, mass-customised jeans, 2005.** In August 2005 Mark Barwald and a university friend launched a website where customers could design their own jeans. It offered 12 million variations, from the cut and the denim to the rivets, the thread and any length.

Too late, they found that 90% of orders were for ordinary jeans from unusually tall women. Barwald later wrote that they had never tested whether people wanted custom-made jeans at all. Specification by example starts from concrete cases, and the founders had specified every pair they could make and no pair a customer was likely to order.

## Which Playbooks use specification by example?

You use specification by example in the Plan of one Playbook:

- [A stakeholder keeps changing their mind and I can't lock the scope.](https://playbooksforleaders.com/discovery-understanding/scope-keeps-moving/)

## What works well with specification by example?

Pair specification by example with [INVEST Model](https://playbooksforleaders.com/delivery-execution/105-invest-model/) and [Hypothesis-Driven Development](https://playbooksforleaders.com/discovery-understanding/036-hypothesis-driven-development/).

## When shouldn't you use specification by example?

For exploratory work, where the team is still finding out what the feature should do, don't write specifications by example. Without the automation to keep the examples running, they go stale like any other document.

## How long does specification by example run?

For as long as the work lasts. You build a document as you go.

**Where it comes from:** [Gojko Adzic, Specification by Example, 2011](https://www.manning.com/books/specification-by-example?ref=playbooksforleaders.com)

**Learn more:** [Gojko Adzic: Specification by Example](https://gojko.net/books/specification-by-example/?ref=playbooksforleaders.com)