A quick presentation on BDD in general, and Gherkin and Behave in particular. This goes on the fundamentals of Gherkin, and showcases a very simple Behave test for the well known `ls` command. The git repository for this presentation that was demoed is https://github.com/bmustiata/behave-demo .
5. Introduction
Story: Returns go to stock
As a store owner
In order to keep track of stock
I want to add items back to stock when they're
returned.
Scenario 1: Refunded items should be returned to stock
Given that a customer previously bought a black sweater
from me
And I have three black sweaters in stock.
When he returns the black sweater for a refund
Then I should have four black sweaters in stock.
6. Introduction
Story: Returns go to stock
As a store owner
In order to keep track of stock
I want to add items back to stock when they're
returned.
Scenario 1: Refunded items should be returned to stock
Given that a customer previously bought a black sweater
from me
And I have three black sweaters in stock.
When he returns the black sweater for a refund
Then I should have four black sweaters in stock.
11. Gherkin
Feature: Some terse yet descriptive text of what is desired
@BusinessCritical @Meh
Scenario: Some determinable business situation
Given some precondition
And some other precondition
When some action by the actor
And some other action
And yet another action
Then some testable outcome is achieved
And something else we can check happens too