Guide
Three amigos in agile: who comes, what to ask, and example mapping
By Miftode Vasilica, maker of Gherkin Studio ·
The three amigos are three points of view on a piece of work before it is built: business, development and testing. A product person, a developer and a tester look at one story together, agree what it should do, and agree how they will know it is done. The result is usually a set of examples, which can later become Gherkin scenarios. Below: where the idea comes from, the three questions, a 25-minute method called example mapping, a worked map, and the mistakes that turn it into one more meeting.
Where the name comes from
The Agile Alliance glossary dates the term to 2009, to a blog post by George Dinwiddie. It also lists two other names for the same practice: "story kick-off huddle" and "the triad".
The glossary describes the three perspectives as three questions:
| Perspective | Usually | The question it brings |
|---|---|---|
| Business | Product owner, business analyst | What problem are we trying to solve? |
| Development | A developer who may build it | How might we build a solution to that problem? |
| Testing | A tester, or anyone thinking like one | What about this? What could possibly happen? |
"Three" is about points of view, not head count. Two developers and a designer can join. A developer who thinks like a tester can cover two of the three. What matters is that no point of view is missing.
What changes when they meet
A story arrives in refinement: "As a shopper, I want to use a discount code at checkout, so that I pay less." Everyone nods. It looks small.
The tester asks: can I use two codes on one order? The product owner says no. The developer asks: what if the code expires while the customer is on the checkout page? Nobody knows. The tester asks: does the discount apply to the delivery cost? The product owner thinks for a moment and says she will check with finance.
Ten minutes, three questions, and the story is no longer small. That is the point. Each of those questions would have come up anyway, but later: in code review, in testing, or from a customer.
Example mapping: a method for the conversation
Matt Wynne, of the Cucumber project, described example mapping in December 2015. It uses four colours of index cards, or four colours of anything.
| Card | Holds | Where it goes |
|---|---|---|
| Yellow | The story | At the top |
| Blue | A rule: an acceptance criterion or a constraint | In a row under the story |
| Green | An example of a rule | Under the rule it illustrates |
| Red | A question nobody in the room can answer | To the side |
The rules of the game are short:
- Timebox it to about 25 minutes per story. If a small group cannot map a story in that time, the story is too big or not understood yet.
- When nobody knows an answer, write a red card and move on. Arguing about an outcome nobody can decide wastes the session.
- Write examples as short names, not as Gherkin. Wynne suggests titles like an episode of Friends: "the one where the code has expired". He calls writing full Gherkin in the session generally a bad idea, because it distracts from the goal, a shared understanding.
- Not every rule needs an example. Some are obvious.
- At the end, vote with thumbs: is the story ready to build?
A worked example map
The discount code story, after 20 minutes:
Yellow: As a shopper, I want to use a discount code at checkout, so that I pay less.
| Blue: one code per order | Blue: codes have an end date | Blue: the discount is on items only |
|---|---|---|
| Green: the one where a second code replaces the first | Green: the one where the code ended yesterday | Green: the one with a $40 cart and $5 delivery |
| Green: the one where the code ends while the shopper is paying |
Red: - Does "items only" include gift wrapping? - Which time zone decides when a code ends?
How to read the map:
- Many red cards: the team still has a lot to learn. Do not start the story yet.
- Many blue cards: the story is big. Each blue card is a natural place to split it.
- One rule with many green cards: the rule may be several rules. Look for the second one hiding inside.
This map has two red cards. The product owner takes them away. The story comes back two days later with answers, and goes into the sprint.
From the map to Gherkin
After the session, the developer and the tester turn the green cards into scenarios. The product owner reads the draft. Each blue card becomes a Rule:, and each green card becomes an Example: under it.
@SHOP-77
Feature: Discount code at checkout
As a shopper
I want to use a discount code at checkout
So that I pay less
Rule: One code per order
Example: A second code replaces the first
Given I applied the code "SPRING10"
When I apply the code "WELCOME5"
Then only "WELCOME5" is applied to my order
Rule: Codes have an end date
Example: The code ended yesterday
Given the code "SPRING10" ended yesterday
When I apply the code "SPRING10"
Then I see "This code has expired"
Rule: The discount is on items only
Example: A cart with delivery
Given my cart holds items worth $40
And delivery costs $5
When I apply a 10% code
Then the total is $41
The second "end date" example stays out for now. It depends on a red card: which time zone decides. That is a good reason to leave it out, and a bad reason to guess.
More about Rule: and Example: in acceptance criteria in Given-When-Then format.
When three amigos goes wrong
The Agile Alliance glossary names three pitfalls. We have added what each looks like in practice.
| Pitfall | What it looks like | What to do |
|---|---|---|
| Keeping it to exactly three people | The designer is left out of a story that is all about a new screen | Invite every point of view the story needs |
| Inviting the whole team | Eight people, one person talking, the rest on their phones | Keep it small; share the map afterwards |
| Turning it into a fixed meeting | A one-hour slot every Tuesday, whether or not there is a story to discuss | Meet when a story is about to be ready, for as long as it takes |
Two more we see often:
- The tester joins after the code is written. By then the questions are bugs.
- The examples stay on the whiteboard. A photo of the board in a chat is not a specification. Write the scenarios down where the story is.
Remote teams
Example mapping does not need a room. Wynne mentions three ways to do it at a distance: a shared document with nested bullet lists, a spreadsheet with coloured cells, or a mind map. A virtual whiteboard with coloured sticky notes works the same way.
Where the result lives in Jira
- The story is the Jira issue.
- The rules are acceptance criteria. Keep them in the description or a field of your own.
- The red cards are questions. A comment that mentions the person who has to answer works well. So does a separate task, if the answer needs work.
- The scenarios need a place that keeps Gherkin intact and lets a test runner read it later. See how to write Gherkin scenarios in a Jira story.
In Gherkin Studio, the scenarios sit in a panel on the story. The product owner reads the draft on the story, without opening a code repository, and the same text can sync to a .feature file in Git.
Short answers
What are the three amigos in agile?
Three points of view, business, development and testing, that look at a story together before it is built.
Who attends a three amigos session?
At least a product person, a developer and a tester. Anyone else whose point of view the story needs, such as a designer or someone from operations.
How long is a three amigos meeting?
For one well-sized story, about 25 minutes is the guide from example mapping. If it takes much longer, the story is probably too big.
Is three amigos only for BDD?
No. It is a way to discuss a story. BDD gives the examples a format, Gherkin, so they can become tests.
What is the difference between example mapping and story mapping?
Example mapping looks inside one story: its rules, examples and open questions. Story mapping lays out many stories along a user's journey to plan a release.
What are the colours in example mapping?
Yellow for the story, blue for rules, green for examples, red for questions.
Where Gherkin Studio fits
Gherkin Studio is a BDD app for Jira Cloud, built on Atlassian Forge. It is on the Atlassian Marketplace, with a 30-day free trial. See also user stories in Gherkin, with examples.