-
-
Notifications
You must be signed in to change notification settings - Fork 2k
[JUnit] Make duplicate pickle names unique #2045
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
Conversation
2828077
to
2011ccd
Compare
Individual examples do not have a unique name. And while a unique name is not required by Junit, various integrations such as sbt-junit assume this the case. By appending ` [#n]` to a scenario name it becomes unique again. So JUnit 4s output becomes: ``` A feature with scenario outlines A scenario outline #1 A scenario outline #2 A scenario outline #3 A scenario outline #4 ``` The `#n` was taken from JUnit 5 which renders examples as: ``` A feature with scenario outlines A scenario outline With some other text Example #1 Example #2 With some text Example #1 Example #2 ``` Fixes: cucumber/cucumber-jvm-scala#102
2011ccd
to
fc8b066
Compare
I tested it in the context of sbt junit, it seems to work but the error is not very self explanatory:
|
It's not supposed to throw an error. :D |
@gaeljw found the problem. I moved the filter into the wrong stream. |
Hello @mpkorstanje Thanks for looking into this. Are you planning to release this change ? |
After you tell me that it fixes the problem. 😄 |
Sorry @mpkorstanje I am still trying to publish this project / PR and use it in my application, as I never worked on Maven before. Apologies Is there a way that I can download the dependency of this particular PR and test ? I mean just like how it downloads from maven repository ? |
Works perfectly for me in the two cases:
Great work @mpkorstanje |
Individual examples do not have a unique name. And while a unique name is not
required by Junit, various integrations such as sbt-junit assume this the case.
By appending
[#n]
to a scenario name it becomes unique again. So JUnit 4soutput becomes:
The
#n
was taken from JUnit 5 which renders examples as:Fixes: cucumber/cucumber-jvm-scala#102