Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.12 KB

cucumber.md

File metadata and controls

39 lines (28 loc) · 1.12 KB
title description layout
Configuring cucumber
A guide for generating Trunk-compatible test reports for Cucumber tests
title description tableOfContents outline pagination
visible
true
visible
true
visible
true
visible
true
visible
true

Cucumber

1. Generate JUnit

Add --format junit:path/to/junit/output to your cucumber test command line. For example:

cucumber tests/test.feature --format junit:output/report.xml

2. Output Location

JUnit files will be written according to the path passed to the --format option. In the above example, a JUnit file will be written to output/report.xml.

Disable Retries

You need to disable automatic retries if you previously enabled them. Retries compromise the accurate detection of flaky tests.

You can disable retry by omitting the --retry CLI option or removing retry from your configuration file.

Next Step

JUnit files generated with Cucumber are compatible with Trunk Flaky Tests. See CI Providers for a guide on how to upload test results to Trunk.