cucumber-jvm

How to generate reports for each scenario using Cucumber JVM?


the default cucumber-html report is generated once the execution is completed, but I want the same report to be generated for each scenario instead.

Is there a direct API that I can use or do I need to write custom formatters to generate the report for each scenario?


Solution

  • Using the Gherkin Formatters and pointing to that class instead of format html helped me in generating reports for each scenario.