Search code examples
cucumber

How to generate cucumber reports not using a test runner


I have created an application which runs cucumber tests on demand

Previously I was running cucumber through a test runner in junit, but I now run the tests using cucumbers own io.cucumber.core.cli.Main.

Is there a way to use cucumber plugin "pretty" to generate cucumber reports with this approach?


Solution

  • You should add -p "html:target/cucumber-report/cucumber.html" to your options . See here.