cawolf / behat-cucumber-formatter

Behat extension generating JSON reports
MIT License
3 stars 9 forks source link

Incorrect count for Scenario outline #14

Open marcelovani opened 1 year ago

marcelovani commented 1 year ago

I am facing an issue using Cucumber Reports for Jenkins plugin https://plugins.jenkins.io/cucumber-reports/ Repo https://github.com/jenkinsci/cucumber-reports-plugin

Problem

Scenario outlines are not being counted, see screenshot

Screenshot 2023-10-27 at 09 14 21

How to replicate I created a Jenkins job, using the output from https://github.com/cawolf/behat-cucumber-formatter/blob/master/features/eat-cukes.feature#L24-L281

The Jenkins job does the following: 1 - Creates json a file

Screenshot 2023-10-27 at 09 24 45

2 - Processes the json file

Screenshot 2023-10-27 at 09 25 36
marcelovani commented 1 year ago

I figured out that the value for type should always be scenario, see https://github.com/cawolf/behat-cucumber-formatter/blob/944c9f9895a7b70bfcb5bce21bb0a308e3509504/src/Formatter/Formatter.php#L243