Created
February 3, 2013 15:35
-
-
Save swestcott/4702195 to your computer and use it in GitHub Desktop.
Example output from Behat project @ https://github.com/swestcott/BehatMonolog-example
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
$ bin/behat | |
Feature: Simple Calculator | |
Scenario: Addition # features/SimpleCalculator.feature:3 | |
[2013-02-03 16:33:34] FeatureContext.INFO: Initialised calculator ["stdClass"] [] | |
Given I have a calculator # FeatureContext::iHaveACalculator() | |
[2013-02-03 16:33:34] AdditionContext.INFO: Adding values ["2","3"] [] | |
When I add together "2" and "3" # AdditionContext::iAddTogetherAnd() | |
[2013-02-03 16:33:34] FeatureContext.INFO: Asserting expected result "5" equals "5" [] [] | |
Then the result should be "5" # FeatureContext::theResultShouldBe() | |
Scenario: Substraction # features/SimpleCalculator.feature:8 | |
[2013-02-03 16:33:34] FeatureContext.INFO: Initialised calculator ["stdClass"] [] | |
Given I have a calculator # FeatureContext::iHaveACalculator() | |
[2013-02-03 16:33:34] SubtractionContext.INFO: Substracting values ["2","3"] [] | |
When I subtract "2" from "3" # SubtractionContext::iSubtractFrom() | |
[2013-02-03 16:33:34] FeatureContext.INFO: Asserting expected result "1" equals "1" [] [] | |
Then the result should be "1" # FeatureContext::theResultShouldBe() | |
Scenario: Multiplication # features/SimpleCalculator.feature:13 | |
[2013-02-03 16:33:34] FeatureContext.INFO: Initialised calculator ["stdClass"] [] | |
Given I have a calculator # FeatureContext::iHaveACalculator() | |
[2013-02-03 16:33:34] MultiplicationContext.INFO: Multiplying values ["2","3"] [] | |
When I multiply together "2" and "3" # MultiplicationContext::iMultiplyTogetherAnd() | |
[2013-02-03 16:33:34] FeatureContext.INFO: Asserting expected result "6" equals "6" [] [] | |
Then the result should be "6" # FeatureContext::theResultShouldBe() | |
Scenario: Division # features/SimpleCalculator.feature:18 | |
[2013-02-03 16:33:34] FeatureContext.INFO: Initialised calculator ["stdClass"] [] | |
Given I have a calculator # FeatureContext::iHaveACalculator() | |
[2013-02-03 16:33:34] DivisionContext.INFO: Dividing values ["3","2"] [] | |
When I divide "3" by "2" # DivisionContext::iDivideBy() | |
[2013-02-03 16:33:34] FeatureContext.INFO: Asserting expected result "1.5" equals "1.5" [] [] | |
Then the result should be "1.5" # FeatureContext::theResultShouldBe() | |
4 scenarios (4 passed) | |
12 steps (12 passed) | |
0m0.029s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment