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

Running feature files in specific order. #2461

Closed
priyanshuraturi opened this issue Dec 8, 2023 · 2 comments
Closed

Running feature files in specific order. #2461

priyanshuraturi opened this issue Dec 8, 2023 · 2 comments
Labels

Comments

@priyanshuraturi
Copy link

priyanshuraturi commented Dec 8, 2023

In karate generally to run feature files in specific order we use a master file to call the feature files, but this generally mix up the reports in single page and makes problem while debugging.

I understand this impacts karate feature for parallel execution but we should have way to specify order of features.

Like with the help of tags.

For example if we have a tag @SomeTag
so in feature file 1, we add @SomeTag(order=1)

and in second feature file , we add @SomeTag(order=2)

and when we run this specific tag it will the the first feature file and then the second one in order.

This will help us lot in specific scenarios where we like to test CRUD operations of an API , so in order we can perform it in specific order and can get a well defined report.

Please look if we can consider this.

@ptrthomas
Copy link
Member

possible duplicate of #2235 - but this is not a priority so please consider contributing code (or influencing someone to do so)

if you really want features to run in order, use a "wrapper" feature file and then use the call keyword on multiple lines.

@ptrthomas
Copy link
Member

also read this please: https://stackoverflow.com/a/46080568/143475

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants