-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Core] Fix filtering scenarios loaded from jar #1618
[Core] Fix filtering scenarios loaded from jar #1618
Conversation
Seems like it's related to #1544 by @mpkorstanje |
Hi @derwasp, Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾 In return for this generous offer we hope you will:
On behalf of the Cucumber core team, |
Cheers! |
@derwasp should be a new version available in a few hours. |
@mpkorstanje thank you for the rocket-fast release! |
To get this fix: cucumber/cucumber-jvm#1618
No problem. Would you mind commenting on: |
To get this fix: cucumber/cucumber-jvm#1618
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
1 similar comment
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Don't add an extra slash after the
classpath:
schemeDetails
Changed the
ZipResource
to preserve the original path of the zipped entity.Motivation and Context
I am running cucumber tests with features loaded from
classpath:
, like this:However, when cucumber parses this path and creates a

ZipResource
from it, it adds an extra slash:And the url becomes
classpath:/features/FeatureWithExamples.feature:64
This becomes a problem down the line, when

LinePredicate
tries to filter out the pickles:This if does't pass (because the key is not the one in the map) and instead of filtering the pickles out, it just lets all of the though the filter.
I tried changing the path to be
classpath:/features/FeatureWithExamples.feature:64
right away. But then the loader is unable to get the resource:Can you please tell me whether this change makes sense or am I confusing things here?
Types of changes
New feature (non-breaking change which adds functionality).Breaking change (fix or feature that would cause existing functionality to not work as expected).