You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
godog F1.feature:5 F2.feature:5 F1.feature:13
# example from godog package
godog features/load.feature:6 features/multistep.feature:6 features/load.feature:23 features/multistep.feature:23
All godog arguments are feature file paths, you may specify separate scenarios at specific lines to be run in specific order. Note, that if you have a hook like BeforeFeature then it will be run separately for every specified feature in argument.
I tried your suggestion and it seems something broke down the way. I was expecting scenarios to be run, but only the first one for each feature file is executed.
godog features/load.feature:6 features/multistep.feature:6 features/load.feature:23 features/multistep.feature:23
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 # features/load.feature:6
Given a feature path "features" # suite_context.go:324 -> *suiteContext
When I parse features # suite_context.go:329 -> *suiteContext
Then I should have 11 feature files: # suite_context.go:348 -> *suiteContext
"""
features/background.feature
features/events.feature
features/formatter/cucumber.feature
features/formatter/events.feature
features/lang.feature
features/load.feature
features/multistep.feature
features/outline.feature
features/run.feature
features/snippets.feature
features/tags.feature
"""
Feature: run features with nested steps
In order to test multisteps
As a test suite
I need to be able to execute multisteps
Scenario: should run passing multistep successfully # features/multistep.feature:6
Given a feature "normal.feature" file: # suite_context.go:318 -> *suiteContext
"""
Feature: normal feature
Scenario: run passing multistep
Given passing step
Then passing multistep
"""
When I run feature suite # suite_context.go:379 -> *suiteContext
Then the suite should have passed # suite_context.go:338 -> *suiteContext
And the following steps should be passed: # suite_context.go:191 -> *suiteContext
"""
passing step
passing multistep
"""
2 scenarios (2 passed)
7 steps (7 passed)
The text was updated successfully, but these errors were encountered:
lonnblad
changed the title
[Question] Multiple Scenario in same feature file
Issue when selecting sultiple Scenario in same feature file
Jun 23, 2020
lonnblad
changed the title
Issue when selecting sultiple Scenario in same feature file
Can't execute multiple specific scenarios in the same feature file
Jun 23, 2020
yes, call godog this way:
godog F1.feature:5 F2.feature:5 F1.feature:13 # example from godog package godog features/load.feature:6 features/multistep.feature:6 features/load.feature:23 features/multistep.feature:23
All godog arguments are feature file paths, you may specify separate scenarios at specific lines to be run in specific order. Note, that if you have a hook like
BeforeFeature
then it will be run separately for every specified feature in argument.Originally posted by @l3pp4rd in #99 (comment)
Question
I tried your suggestion and it seems something broke down the way. I was expecting scenarios to be run, but only the first one for each feature file is executed.
The text was updated successfully, but these errors were encountered: