Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Qusetion] Is there any way to sequence the tagging explicitly in multiple feature file #99

Closed
amitkrout opened this issue Sep 5, 2017 · 1 comment
Labels
❓ question Consider using support forums: https://cucumber.io/tools/cucumber-open/support

Comments

@amitkrout
Copy link

I have more than one feature file and each feature file comprises feature specific scenarios. For example

F1.feature
- S1
- S2
- S3
F2.feature
- S1
- S2
- S3

...

Now i want to select a sequence of F1(S1) -> F2(S1) -> F2(S2) -> F1(S2) -> F1(S3) -> F2(S3) in a single run.
Is there any way to do it ?

@l3pp4rd
Copy link
Member

l3pp4rd commented Sep 5, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Consider using support forums: https://cucumber.io/tools/cucumber-open/support
Projects
None yet
Development

No branches or pull requests

2 participants