When building your Behavior-Driven Development (BDD) examples, do you first dive into detailing all the given-when-then narratives? Chances are good that you're doing more speculative work than you should. Let's learn how to shape our BDD features using a just-in-time (JIT) mentality. In this hands-on workshop, you'll learn about when and how to negotiate stories around BDD scenario names. You'll discover how this focus can help you: * learn how to break down larger stories * determine the scope to be delivered * transition the conversation (story) into a dependable artifact.
2. We are uncovering better ways of developing software
by doing it and helping others do it.
Through this work we have come to value:
Working software
over
comprehensive documentation
Customer collaboration
over
contract negotiation
source: http://agilemanifesto.org
@jlangr
3. Let me tell you a story...
on-hold materials
@jlangr
7. Bill Wake's Story Criteria
Image courtesy InvestmentTotal.com https://www.flickr.com/photos/investmenttotal/
License: https://creativecommons.org/licenses/by/2.0/
@jlangr
8. A Binary Artifact
Feature: Fines
As a librarian,
I want to assess fines for books returned late,
So that we can encourage maximum book availability.
Background:
Given a library system with one book
Scenario: Due date for book is 21 days after checkout
When a patron checks out the book on 2017/3/1
Then the due date is 2017/3/22
Scenario: Book incurs no fine when returned on due date
Given a patron checks out the book on 2017/4/1
When the book is returned on 2017/4/22
Then the patron's fine balance is 0
Scenario: Book incurs fine when returned after due date
...
@jlangr
12. Gherkin is alluring.
Feature: Fines
As a librarian,
I want to assess fines for books returned late,
So that we can encourage maximum book availability.
Background:
Given a library system with one book
Scenario: Due date for book is 21 days after checkout
When a patron checks out the book on 2017/3/1
Then the due date is 2017/3/22
Scenario: Book incurs no fine when returned on due date
Given a patron checks out the book on 2017/4/1
When the book is returned on 2017/4/22
Then the patron's fine balance is 0
Scenario: Book incurs fine when returned after due date
...
@jlangr
13. We're
"Designing
Scenarios"
Let's slice out that talk
about Gherkin.
"Bread & Butter pickles - Slicing cucumbers," courtesy Rebecca Siegel.
https://www.flickr.com/photos/grongar/6019669203/
License: https://creativecommons.org/licenses/by/2.0/
@jlangr