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

[enhancement] support calling other scenarios in the same (implied) feature by tag #1499

Closed
ptrthomas opened this issue Feb 23, 2021 · 2 comments
Assignees
Milestone

Comments

@ptrthomas
Copy link
Member

idea via https://stackoverflow.com/q/66328766/143475

I think it is a good idea to support * call read('@sometag') and look within the same file.

it can make self-contained examples easier, and we can optimize to not re-parse the feature etc.

@ptrthomas ptrthomas self-assigned this Feb 23, 2021
@ptrthomas ptrthomas added this to the 1.0.0 milestone Feb 23, 2021
@ptrthomas
Copy link
Member Author

on second thoughts - no. the reason is we want to encourage re-usable routines to live in separate features always, typically with an @ignore tag or tucked away under classpath: etc

the moment you tag a Scenario in the same feature file, it will run by default unless you a) add an @ignore tag and b) make sure you run so that @ignore is excluded which gets really confusing

@ptrthomas ptrthomas removed this from the 1.0.0 milestone Mar 13, 2021
@ivangsa
Copy link
Contributor

ivangsa commented Sep 26, 2021

Hi
Now that @ignore tag is a builtin is part of karate I'm interested in this feature
I have a working PR

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

No branches or pull requests

2 participants