godog/features/formatter/events.feature
Stettler, Robert 061d3a3b74 Added support for Docstirngs
Updated lang.feature with the additional cucumber.feature
Updated load.feature with the additional cucumber.feature
Updated events.feature to account for ripple effect of updating lang and load
Updated run.go to indicate that cucumber formatter does not support concurrent.
Updated suite_test.go to handle one new testing step.
2017-02-23 11:49:04 -05:00

78 строки
2,1 КиБ
Gherkin

Feature: event stream formatter
In order to have universal cucumber formatter
As a test suite
I need to be able to support event stream formatter
Scenario: should fire only suite events without any scenario
Given a feature path "features/load.feature:4"
When I run feature suite with formatter "events"
Then the following events should be fired:
"""
TestRunStarted
TestSource
TestRunFinished
"""
Scenario: should process simple scenario
Given a feature path "features/load.feature:22"
When I run feature suite with formatter "events"
Then the following events should be fired:
"""
TestRunStarted
TestSource
TestCaseStarted
StepDefinitionFound
TestStepStarted
TestStepFinished
StepDefinitionFound
TestStepStarted
TestStepFinished
StepDefinitionFound
TestStepStarted
TestStepFinished
TestCaseFinished
TestRunFinished
"""
Scenario: should process outline scenario
Given a feature path "features/load.feature:30"
When I run feature suite with formatter "events"
Then the following events should be fired:
"""
TestRunStarted
TestSource
TestCaseStarted
StepDefinitionFound
TestStepStarted
TestStepFinished
StepDefinitionFound
TestStepStarted
TestStepFinished
StepDefinitionFound
TestStepStarted
TestStepFinished
TestCaseFinished
TestCaseStarted
StepDefinitionFound
TestStepStarted
TestStepFinished
StepDefinitionFound
TestStepStarted
TestStepFinished
StepDefinitionFound
TestStepStarted
TestStepFinished
TestCaseFinished
TestCaseStarted
StepDefinitionFound
TestStepStarted
TestStepFinished
StepDefinitionFound
TestStepStarted
TestStepFinished
StepDefinitionFound
TestStepStarted
TestStepFinished
TestCaseFinished
TestRunFinished
"""