Skip to content

Instantly share code, notes, and snippets.

@newswim
Created November 16, 2017 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newswim/1f43d1f1529edf5731fef87502a8db9b to your computer and use it in GitHub Desktop.
Save newswim/1f43d1f1529edf5731fef87502a8db9b to your computer and use it in GitHub Desktop.
An example of an acceptance test using BDD and Gherkin syntax
Feature: Google Searching
As a web surfer, I want to search Google, so that I can learn new things.
Scenario: Simple Google search
Given a web browser is on the Google page
When the search phrase "panda" is entered
Then results for "panda" are shown
And the result page displays the text
"""
Scientific name: Ailuropoda melanoleuca
Conservation status: Endangered (Population decreasing)
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment