Skip to content

Instantly share code, notes, and snippets.

@damienstanton
Last active August 29, 2015 14:11
Show Gist options
  • Save damienstanton/9e6c4b9bdf758f52fdcc to your computer and use it in GitHub Desktop.
Save damienstanton/9e6c4b9bdf758f52fdcc to your computer and use it in GitHub Desktop.
Example Behave File
@tags @tag
Feature: Do A Thing
As [agent]
In order to accomplish the goal of a thing
I need to do a thing
Background: some requirement for this test
Given [agent] is an admin
And there are no other admins logged in
Then admin permissions are granted
But if [agent] is not an admin
Then admin permissions are not granted
Scenario: admin makes a change
Given the user has sudo
When the user deletes all the things
Then the things should all be deleted
But if the user does not have sudo
Then nothing will happen
# etc...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment