Reports

Specwright generates two complementary report types after every test run. Both live under reports/ in your project root.


BDD HTML Report

Run pnpm report:bdd to generate the Cucumber BDD HTML report. It groups results by module and workflow phase using a directory-structured sidebar, making it easy to see which features and scenarios passed or failed.

BDD report dashboard showing 3 features and 11 scenarios with module/workflow directory structure

Dashboard — features & scenarios overview

Donut charts for pass/fail/skip counts. Directory tree groups @Modules and @Workflows separately, with per-phase pass counts for multi-phase workflows.

BDD report feature detail showing 7 scenarios for the Todo List Page feature

Feature detail — scenario-level breakdown

Each feature page lists all scenarios with tags, duration, and step-by-step pass/fail detail. Tags like @todolist are clickable filters.

BDD report workflow phase detail showing precondition scenario with cross-feature-data tags

Workflow phase — @0-Precondition detail

Workflow phases appear as separate entries under the workflow directory. Tags like @precondition, @cross-feature-data, and @serial-execution are visible per scenario, reflecting the exact tags in the feature file.

Module / Workflow segregation

The sidebar directory tree mirrors your feature file structure:

@Modules/
  @TodoList/           ← 7 scenarios
@Workflows/
  @TodoWorkflow/
    @0-Precondition/   ← 1 scenario (serial, creates shared data)
    @1-VerifyInList/   ← 3 scenarios (parallel consumers)

This makes it easy to see cross-phase data flow and verify that precondition scenarios ran before consumers.

Generating the BDD report

pnpm report:bdd        # generate HTML from reports/cucumber-bdd/report.json
pnpm report:bdd:open   # open in browser

Note: reports/cucumber-bdd/report.json may be empty (0 bytes) when tests fail mid-run. This is a known limitation of cucumberReporter — use the Playwright report for failure analysis in that case.


Playwright HTML Report

Run pnpm report:playwright for the Playwright HTML report. It provides traces, network activity, console logs, and embedded video playback for every test.

pnpm report:playwright  # open Playwright HTML report

Report artifacts

ArtifactLocationContents
BDD HTMLreports/cucumber-bdd/html-report/Feature/scenario grouped, tag filters
Playwright HTMLreports/playwright/Timeline, network, console, traces
JSON (Playwright)reports/json/results.jsonAuthoritative pass/fail per test
Cucumber JSONreports/cucumber-bdd/report.jsonSource for BDD HTML report
Failure screenshotsreports/screenshots/Named failure-{scenario-name}.png
Tracestest-results/.zip files — view with npx playwright show-trace
Videostest-results/video.webm per test (when enabled)