Skip to main content

Cucumber Reports

Cucumber uses reporter plugins to produce reports that contain information about what scenarios have passed or failed.

Built-in Reporters

There several pre-defined or built-in reporters for Cucumber. Each reporter may present the test results in a different way, suitable for specific needs or preferences. These built-in reporters offer different levels of detail and visualization options, helping developers to understand the test results and identify any potential issues more effectively.

Following are some of the built-in reporters:

  • message
  • progress
  • pretty
  • html
  • json
  • rerun
  • junit
  • testng

Custom Reporters

Apart from the built-in reporters, Cucumber Test also allows developers to create custom reporters i.e. you have the flexibility to define your own format and layout for displaying test results. Custom reporters are beneficial when you have specific reporting requirements or when you want to integrate the test results seamlessly into your existing development workflow.

This involves creating a class that implements/extends the standard formatter interface.

Steps to Generate Cucumber Reports on HyperExecute

Step 1: Configure the report parameters in the HyperExecute YAML file.

report: true
partialReports:
location: target/cucumber-reports/
frameworkName: cucumber
type: json

Step 2: Now execute your job by triggering the HyperExecute CLI. You can visit the HyperExecute dashboard to download the report after job completion.

Image