Cucumber HTML
Built-in HTML report formatter included with Cucumber for visualising BDD test execution results.
Pricing
Free / Open source
Type
Automation
Languages
JavaScript, TypeScript, Java, Ruby
// VERDICT
Reach for the Cucumber HTML reporter when you want a simple, built-in report of your Gherkin scenarios straight from a Cucumber run. Skip it when you want richer history/analytics (MasterThought/Allure) or a reporting platform.
Best for
The built-in HTML reporter/formatter for Cucumber - generating a self-contained report of Gherkin scenarios and their results directly from a Cucumber run, with no extra tooling.
Avoid when
You want richer analytics/history, framework-agnostic reporting (Allure), or a reporting platform.
CI/CD fit
Built-in Cucumber formatter · HTML output · CI artifact
Languages
JavaScript · TypeScript · Java · Ruby
Team fit
Cucumber/BDD teams · Teams wanting zero-extra-tooling reports · Quick scenario reports
Setup
Maintenance
Learning
Licence
// BEST FOR
- Built-in HTML report of Gherkin scenarios
- No extra tooling beyond Cucumber
- Self-contained, shareable scenario results
- Showing step-level pass/fail
- Quick setup via the formatter option
- Living documentation of BDD runs
// AVOID WHEN
- You want rich analytics and history (MasterThought)
- Framework-agnostic reporting is needed (Allure)
- A reporting platform is preferred
- Cross-framework aggregation matters
- Trend graphs across runs are required
- Deep customisation is needed
// QUICK START
Enable the Cucumber HTML formatter (e.g. plugin = "html:target/report.html") ->
run Cucumber -> publish the generated HTML report as a CI artifact.// ALTERNATIVES TO CONSIDER
| Tool | Choose it when |
|---|---|
| MasterThought (Cucumber Reporting) | You want richer Cucumber reports with history and trends. |
| Allure Report | You want framework-agnostic interactive reports. |
| Serenity BDD | You want BDD with living-documentation reporting built in. |
// FEATURES
- Single self-contained HTML file with feature/scenario hierarchy
- Step-level pass/fail status and timing
- Embeds screenshots, logs, and arbitrary attachments
- Bundled with Cucumber implementations — no extra dependency
- JSON and JUnit XML formatters available alongside HTML
// PROS
- Zero install — comes with Cucumber out of the box
- Sufficient for small projects without dedicated reporting needs
- Self-contained file convenient for CI artifacts
- Stable and consistent across Cucumber language implementations
// CONS
- Plain compared to Allure or MasterThought reports
- No trends or cross-build aggregation
- Limited customisation — accept the defaults or roll your own
// EXAMPLE QA WORKFLOW
Enable the Cucumber HTML formatter
Run Cucumber scenarios
Generate the self-contained HTML report
Publish as a CI artifact
Share as living documentation
Add a richer reporter if you need history
// RELATED QA.CODES RESOURCES
Cheat sheets
Glossary
Practice
Interview