godog/features/load.feature
gedi c6d00dd6d5 refactor to use cocumber gherkin3 parser library
* bdde4c4 fix test suite and migration changes
* a3b6e01 refactor pretty formatter
* 2c0c7ba fix outline scenario handling
* f6b411d add a different language test feature

add a different language test feature
2015-06-25 21:19:02 +03:00

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

Feature: load features
In order to run features
As a test suite
I need to be able to load features
Scenario: load features within path
Given a feature path "features"
When I parse features
Then I should have 4 feature files:
"""
features/events.feature
features/lang.feature
features/load.feature
features/run.feature
"""
Scenario: load a specific feature file
Given a feature path "features/load.feature"
When I parse features
Then I should have 1 feature file:
"""
features/load.feature
"""
Scenario Outline: loaded feature should have a number of scenarios
Given a feature path "<feature>"
When I parse features
Then I should have <number> scenario registered
Examples:
| feature | number |
| features/load.feature:3 | 0 |
| features/load.feature:6 | 1 |
| features/load.feature | 4 |
Scenario: load a number of feature files
Given a feature path "features/load.feature"
And a feature path "features/events.feature"
When I parse features
Then I should have 2 feature files:
"""
features/load.feature
features/events.feature
"""