-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cucumber JSON report fails to generate when a scenario outline has a tag #1621
Cucumber JSON report fails to generate when a scenario outline has a tag #1621
Comments
Hi :) When you say "I tried removing the scenario outline example tags and it proceeded with generating the JSON report.", did you removed only the tags but keep two examples tables? Or did you merge both Examples into one? |
Hi @aurelien-reeves, I removed both the tags and the two examples table, and just used 1 examples table. :) Something like this:
Many thanks! |
Thanks for the info @xenbartolokath |
I got the same issue but I realized that I was filtering when I run the cli command I.E npm run protractor -- --cucumberOpts.tags='not (@wip or @bug or @backlog) and @blocker' I had a different tag in the example table @another_tag I changed the command to this and work for me--> |
Thanks for your feedback @yopasa94 👍 |
I have investigated the issue further. Indeed, the json formatter does not support tags on examples. It actually should. As the built-in json formatter is deprectated, I will focus on fixing the new standalone one. @xenbartolokath @yopasa94 do you have specific need in using the legacy deprecated formatter? Or anything else which would prevent you to use the new standalone json formatter? |
Hi @aurelien-reeves, For this issue, I was using @cucumber/cucumber v7.0.0, but I still use v6.0.5 on other repositories that I have. I don't have specific need in the legacy deprecated formatter. For the standalone json formatter, I saw that I needed to download and execute some commands to install it, and I don't know if my pipeline's current setup would accommodate the changes. I prefer installing it via npm if available. As long us I can put tags on Examples tables and generate reports without problems, then I'm good with it. 😃 |
FYI the standalone json-formatter is a standalone binary written in go. It does not require any installation beside making sure it is executable. |
Got it. Thanks for the clarification. 😊 |
A fix has been merged in the new standalone json-formatter |
@xenbartolokath @yopasa94 The standalone json-formatter has just been released with the support of tagged examples. |
@aurelien-reeves Will try this out and will let you know if there are some feedbacks from my end. Thank you! Appreciated your time and effort 😊 |
Cucumber Version: 7.0.0
Node Version: 14.15.0
Operating System: MacOS Big Sur v11.2.1
Given this following test case:
When I run the test case above with the tag: "--tags @child_tag_2" and "-f json:reports/cucumber-report.json", the test case runs successfully, but upon generating an report, the following error occurs:
Therefore I can't generate any JSON report.
I tried removing the scenario outline example tags and it proceeded with generating the JSON report.
The text was updated successfully, but these errors were encountered: