damianszczepanik / cucumber-reporting

HTML reports for Cucumber
GNU Lesser General Public License v2.1
548 stars 403 forks source link

net.masterthought.cucumber.ValidationException: Passed files have no features! after upgrade to 7.3.0 #1085

Closed adarshhm6 closed 1 year ago

adarshhm6 commented 1 year ago

With Cucumber-Core-7.0.0 and
me.jvt.cucumber:reporting-plugin:7.0.0 which internally brings net.masterthought:cucumber-reporting:5.6.0 able to get the PrettyReport and HTML report successfully.

Without any changes to feature file and source code, On upgrading dependency Cucumber-core to 7.3.0 and me.jvt.cucumber-reporting-plugin to 7.3.0 which internally brings net.masterthought:cucumber-reporting:5.7.0 getting Passed files have no features error.

Intention was to update to latest version which is 7.9.0 and use latest version of html-formatter but however reporting-plugin still is with 7.3.0 so tried to keep it sync with both modules used 7.3.0 resulting in Passed file have no features error. Any significant changes or version compatibility needs to be checked or we should use 7.0.0 only for reporting to get Pretty Reports.

net.masterthought.cucumber.ValidationException: Passed files have no features! image

JamieFlournoy commented 1 year ago

@adarshhm6 , I am seeing the same issue with Cucumber from 7.0.0 through 7.1.0 when using this (net.masterthought:cucumber-reporting:5.7.4) project.

You closed this issue as completed - what was your resolution for this? https://xkcd.com/979/

adarshhm6 commented 1 year ago

@JamieFlournoy I didn't checked that there was already an issue(https://github.com/damianszczepanik/cucumber-reporting/issues/1033) where resolution provided as files which are passed has no features. Since my plan was to upgrade to 7.9.0 of Cucumber, I didn't wish to keep this open with half information as I am trying to upgrade Cucumber to 7.9.0 and see with me.jvt.cucumber:reporting-plugin to 7.3.0 which internally takes net.masterthought:cucumber-reporting:5.7.0. You can reopen the issue and share further details.

adarshhm6 commented 1 year ago

Reopening this as this issue still persists with 7.3.0 version of Cucumber

On upgrading dependency Cucumber-core to 7.3.0 and me.jvt.cucumber-reporting-plugin to 7.3.0 which internally brings net.masterthought:cucumber-reporting:5.7.0 getting Passed files have no features error.

damianszczepanik commented 1 year ago

you have provided invalid JSON files and that's why you get this error - check JSON file you passed as input

adarshhm6 commented 1 year ago

@damianszczepanik I am not passing any json explicitly. My feature scenario is tagged with @Sanity and same runs without any issue with cucumber 7.0.0 I am running from command line. There is no change in the command. Only cucumber version is upgraded from 7.0.0 to 7.3.0 along with reporting-plugin to 7.3.0. java -DAUTOMATION_LOG_PATH= -DAUTOMATION_CONFIG= -cp \conf -cp \target\automation\lib\automation-glue-1.0-SNAPSHOT-fat.jar io.cucumber.core.cli.Main \conf --glue -t ""@Sanity"" -p me.jvt.cucumber.report.PrettyReports:\pretty - p html:\html\report.html -p rerun:\rerun\rerun.txt

When I try with cucumber 7.0.0 I get json has 1 feature for tag @Sanity but with 7.3.0 it's getting 0 features.