Skip to content

Instantly share code, notes, and snippets.

@dannykopping
Created April 8, 2012 12:11
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 dannykopping/2336912 to your computer and use it in GitHub Desktop.
Save dannykopping/2336912 to your computer and use it in GitHub Desktop.
Behat Test
# make sure you run this from the root of the project
behat tests/behat/
# Expected output:
# Feature: Test the Sample application
#
# Scenario Outline: Test the greeting # tests/behat/features/sample.feature:2
# Given that an instance exists # FeatureContext::thatAnInstanceExists()
# And its name is "<name>" # FeatureContext::itsNameIs()
# And make it greet me # FeatureContext::makeItGreetMe()
# Then it should say "Hello, Danny" # FeatureContext::itShouldSay()
#
# Examples:
# | name |
# | Danny |
# | Sample |
# Greeting does not match name
#
# 2 scenarios (1 passed, 1 failed)
# 8 steps (7 passed, 1 failed)
# 0m0.022s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment