BDD Example Mapping

The two major goals of Behavior-Driven Development are better collaboration and automation. Even when the Three Amigos actually get together, collaboration can be tough. Where do we start? What scenarios should we write? What examples should be included?

Well, the Cucumber folks have a practice called “Example Mapping” to make it easier. All you need is a pack of index cards and a big table!

  1. Write the story under discussion on a yellow at the top of the table.
  2. Write a rule for each known acceptance criteria on a blue card under the story.
  3. Write each example for a rule on a green card.
  4. Write each open question on a red card on the side to discuss later.

Keep writing cards until the team is satisfied with the story. This process provides clear, fast feedback for stories. A team can quickly see if a story is too big or needs further refinement. Engineers can easily turn example cards into Gherkin scenarios.

Rather than duplicate documentation here, please read Matt Wynne’s seminal post on the practice, Introducing Example Mapping.

Also, watch this webinar recording from Cucumber about Example Mapping:

7 comments

  1. Thanks, this was a great inspiration for me.
    As soon as I had finished watching the video, I scheduled an Example Mapping workshop for two days later….well, sctually less of a workshop and more of a challenge:
    I organized the interested colleagues in groups of 6 people, and promised to bake a chocolate cake for the team that came up with the best arrangement of cards – the one that promised to tell the most solid story for the user.
    During the session, I placed the attendees in front of the wall with the cards, so whenever they came up with something, they could grab a card, write on it and place it on the wall. All I did was moderation like “Uh, that’s a valid question but we won’t find an answer in here, so make it a ‘question’ card” or “Well, that’s obviously important so we might right now decide to make it a ‘story’ card”.
    I didn’t write a single card during the sessions.

    Well….I was impressed of how much they enjoyed debating about ticket reservation, and the different approaches of different teams.

    The next thing I will do is telling them: “OK, I admit, this example story was easy. Next (cake-awarded) challenge will be to come up with the best in-company example of a story for Example Mapping”.

    Ideally this would be a quick way to actually use Example Mapping 😉

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s