Created
April 8, 2012 12:11
-
-
Save dannykopping/2336912 to your computer and use it in GitHub Desktop.
Behat Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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