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

Extended "Rule" keyword support #120

Closed
makmu opened this issue Mar 18, 2021 · 3 comments
Closed

Extended "Rule" keyword support #120

makmu opened this issue Mar 18, 2021 · 3 comments
Labels

Comments

@makmu
Copy link
Contributor

makmu commented Mar 18, 2021

Hi.
In our project we have 1k+ scenarios and thus rely heavily on the "Rule" keyword to group our scenarios within feature files. Currently, jest-cucumber squashes all scenarios of all rules within a feature into a flat list. This way it is not possible to have scenarios with the same title in different rule sections of one feature. Furthermore, since rules provide additional information, it would be nice if each rule and its scenarios were mapped to a separate "describe" section in jest. This way you could even see the rules in the jest output :)

@makmu
Copy link
Contributor Author

makmu commented Mar 18, 2021

I've created #121 which adds this behavior to the library. In order to not introduce any breaking changes, I added a new option collapseRules which is true by default. If set to false you can use defineRuleBasedFeature() or autoBindStepsWithRules() to implement scenario steps and have each rule section mapped to different describe sections in jest.

It would be really nice if you could have a look at it and consider it for merging :)

Copy link

github-actions bot commented Apr 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Apr 7, 2024
Copy link

This issue is closed because there has been no recent activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2024
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

1 participant