godog/features/formatter/events.feature
2020-02-11 18:55:36 -03: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:26"
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:34"
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
"""