Reporting

Generate and view test execution reports with detailed results and statistics.

Report Location

Reports are automatically generated after test execution in:

target/cucumber-reports/

Report Types

HTML Reports

The framework generates HTML reports that provide:

  • Test execution summary with pass/fail counts
  • Detailed scenario results
  • Step-by-step execution details
  • Error messages and stack traces for failed tests
  • Execution time for each scenario

Open the HTML report:

open target/cucumber-reports/cucumber-report.html

Or on Windows:

start target/cucumber-reports/cucumber-report.html

JUnit XML Reports

JUnit XML reports are generated for CI/CD integration:

target/cucumber-reports/junit.xml

These XML reports are compatible with:

  • Jenkins
  • GitHub Actions
  • Azure DevOps
  • CircleCI
  • Other CI/CD platforms that support JUnit XML format

Maven Surefire Reports

The framework uses Maven Surefire for test execution, which provides:

  • Standard Maven test reports
  • Integration with Maven build lifecycle
  • Test execution statistics

View Surefire reports:

mvn surefire-report:report

Reports will be available at:

target/site/surefire-report.html

Viewing Reports

After running tests, navigate to the report directory:

cd target/cucumber-reports
ls -la

You'll find:

  • cucumber-report.html - Main HTML report
  • junit.xml - JUnit XML format for CI/CD

Report Features

Test Summary

The HTML report includes:

  • Total number of scenarios
  • Passed, failed, and skipped scenarios
  • Overall execution time
  • Success rate percentage

Scenario Details

Each scenario shows:

  • Feature file name and location
  • Scenario name and description
  • Tags associated with the scenario
  • Step-by-step execution status
  • Screenshots (if configured)

Error Information

For failed scenarios, the report displays:

  • Error message
  • Stack trace
  • Failed step location
  • Execution time

CI/CD Integration

JUnit XML reports are automatically generated and can be published in CI/CD pipelines. See the CI/CD Integration guide for details on configuring report publishing in your pipeline.