-
-
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
No tests are discovered if feature starts with comments followed by description #2631
Comments
If feature starts with description followed by comment, or if it starts only with a comment (without description), then everything works fine
works !
also works ! |
These are very different execution paths. With the
Though with the CLI the parse error is silently dropped. |
So, after all this is an invalid syntax: Feature: Some feature
# some comment
With some description , but this is valid ? Feature: Some feature
# some comment |
Gherkin has a grammar that explicitly includes comments and comments are not allowed before the description. https://github.com/cucumber/common/blob/main/gherkin/gherkin.berp#L37
You may want to create an issue in https://github.com/cucumber/common to address that. |
By upgrading the cucumber-showcase project from above to 7.9.0 and building it via Maven, it seems the feature parse error is still not displayed
However, using the -e option , the error is now displayed
Though, this might be expected.. |
Yeah, that's between JUnit 5 and Surefire. You could petition the JUnit 5 team to include more information in the |
π What did you see?
It seems that (at least) the junit-platform-suite fails to discover tests if any feature starts with a comment followed by a description
β What did you expect to see?
Tests should be discovered since syntax is correct
π¦ Which tool/library version are you using?
Cucumber for java 7.8.1
π¬ How could we reproduce it?
Steps to reproduce the behavior:
You can reproduce this issue by building the following cucumber-showcase project:
https://github.com/fslev/cucumber-showcase.git
The text was updated successfully, but these errors were encountered: