prashant-ramcharan / courgette-jvm

Multiprocess | Parallel Cucumber-JVM | Parallelize your Java Cucumber tests on a feature level or on a scenario level.
MIT License
132 stars 38 forks source link

Cucumber HTML report not generated when cucumber options is overridden #368

Closed MadhuQAAutomation closed 1 year ago

MadhuQAAutomation commented 1 year ago

Hi @prashant-ramcharan - Cucumber HTML report is not generated when we run the test from command line by overriding the plugin - mvn test -Dcourgette.threads=1 -Dcourgette.runLevel=FEATURE -Dcourgette.rerunFailedScenarios=false -Dcucumber.plugin="json:reports/cucumber/json/cucumber.json"

When we run the below command without overriding the plugin tag , then the cucumber HTML report is created

mvn test -Dcourgette.threads=1 -Dcourgette.runLevel=FEATURE -Dcourgette.rerunFailedScenarios=false"

Can you let me know if any config is missing for this behavior.

Thanks!

MadhuQAAutomation commented 1 year ago

@prashant-ramcharan - Hi - Can you provide an update on this issue?

prashant-ramcharan commented 1 year ago

You are overriding the cucumber.plugin and only specifying the json plugin and as a result you will not get a html report.

Have you tried this?

This will create a json and html cucumber report in the reports directory

-Dcucumber.plugin="json:reports/cucumber/json/cucumber.json,html:reports/cucumber/html/cucumber.html"
MadhuQAAutomation commented 1 year ago

It worked ..Thanks!!

On Fri, Jan 20, 2023 at 1:41 AM Prashant Ramcharan @.***> wrote:

You are overriding the cucumber.plugin and only specifying the json plugin and as a result you will not get a html report.

Have you tried this?

This will create a json and html cucumber report in the reports directory

-Dcucumber.plugin="json:reports/cucumber/json/cucumber.json,html:reports/cucumber/html/cucumber.html"

— Reply to this email directly, view it on GitHub https://github.com/prashant-ramcharan/courgette-jvm/issues/368#issuecomment-1397538863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWIEGE6DQB2PKDUEBP5SBW3WTGNW5ANCNFSM6AAAAAAT3WMUBA . You are receiving this because you authored the thread.Message ID: @.***>