/qa-bdd:living-documentation-publisherfrom qa-bdd
Turns Cucumber JSON from passing BDD suites into HTML living documentation and publishes to GitHub/GitLab Pages. Covers multiple-cucumber-html-reporter and Serenity BDD.
Ships in qa-bdd. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Per the Serenity BDD book (serenity-bdd/the-serenity-book, living-documentation.adoc):
"Living documentation is generated by the automated test suite, and is therefore by definition it is always up-to-date."
The same source distinguishes living documentation from plain test reports: living documentation is authored before development starts, targets the whole team (BAs, product owners, stakeholders), and reads as a business-functionality narrative, not a pass/fail table.
This skill covers the full workflow: produce Cucumber JSON from a passing suite, feed it into a report renderer, apply tag-based section routing, and publish the HTML artefact to a Pages endpoint so stakeholders get a URL, not a zip file.
Two primary renderers are covered:
CucumberWithSerenity) - see references/serenity-reporter.md.cucumber-testing) and stakeholders need to
read acceptance-criteria status without opening a test runner.If only engineers read the results, the JUnit XML feed to
junit-xml-analysis (in the qa-test-reporting plugin)
is sufficient.
json: formatter
(Cucumber-JS) or let CucumberWithSerenity capture results (JVM). Step 1.@wip / @pending scenarios so the document shows only accepted
behaviour. Step 4.A Cucumber-JS "Checkout Service" suite has 24 scenarios tagged by capability
(@billing, @cart) and sprint (@sprint-12); 2 are still @wip.
npx cucumber-js features/ --tags "not @wip" --format json:reports/cucumber.json, producing JSON for the 22 passing scenarios.node scripts/generate-report.js renders ./docs/living-documentation/
under the report name "Checkout Service - Living Documentation".set -e precedes the generate step, a red run aborts before
publishing.peaceiris/actions-gh-pages@v4 pushes the folder to GitHub Pages.@wip scenarios
absent - an always-current, business-readable status page.The report renderers both consume Cucumber JSON. Configure the JSON formatter before wiring the renderer.
Cucumber-JS (in package.json):
{
"scripts": {
"test": "cucumber-js features/ --format json:reports/cucumber.json"
}
}
For parallel shards, use a timestamped JSON filename to avoid overwrite - see references/node-reporter.md.
Cucumber-JVM with Serenity (in serenity.properties):
The CucumberWithSerenity runner captures results automatically; no explicit
JSON formatter is needed. Serenity writes its own JSON artefacts to
target/site/serenity/ as part of mvn verify
(serenity-bdd/the-serenity-book, maven.adoc).
For any Cucumber-JS project, render the JSON with multiple-cucumber-html-reporter:
install it, add a scripts/generate-report.js that points jsonDir at
./reports/ and reportPath at ./docs/living-documentation/, then run
npm test && node scripts/generate-report.js. Full install, script, and options
table: references/node-reporter.md.
For Maven/Gradle projects running CucumberWithSerenity, bind the
serenity-maven-plugin aggregate goal to post-integration-test and run
mvn verify. The Requirements tab renders living documentation from the
feature-directory hierarchy. Full plugin config, hierarchy labels, and
readme.md enrichment: references/serenity-reporter.md.
Use Gherkin tags to categorise scenarios in both renderers.
In the feature file:
@billing @sprint-12
Scenario: Apply promo at checkout
Given ...
Serenity tag filtering - run only tagged tests and limit the aggregate report to those requirements (serenity-bdd/the-serenity-book, filtering-reports.adoc):
# Run and report on one sprint
mvn clean verify -Dcucumber.options="--tags=@sprint-12" \
-Dtags=sprint-12
# Post-run report filtered to a tag
mvn serenity:aggregate -Dtags=sprint-12
Note: "requirements filtering only happens if you specify the tags option"
(serenity-bdd/the-serenity-book, filtering-reports.adoc).
Excluding pending/WIP from published docs:
# Cucumber-JS: exclude anything tagged @wip from the JSON
npx cucumber-js features/ \
--tags "not @wip" \
--format json:reports/cucumber.json
This keeps the living-documentation page free of scenarios that are not yet passing.
Gate the report publication step on a green test exit code. In a shell script:
set -e
npm test # exits non-zero on any failure
node scripts/generate-report.js # only reached if all tests pass
For Serenity, use serenity:check after verify
(serenity-bdd/the-serenity-book, maven.adoc):
mvn verify serenity:check # fails the build if any scenario is red
This ensures the published artefact reflects only a fully-green run.
Publish the generated HTML to GitHub or GitLab Pages so stakeholders get a URL,
not a zip file. Full GitHub Actions and GitLab Pages jobs (including the Serenity
publish_dir override): references/ci-publish.md.
| Anti-pattern | Why it fails | Fix |
|---|---|---|
| Publishing on any push, including red runs | Stakeholders see failing-scenario counts; erodes trust in the document | Gate publish on exit code 0 (Step 5) |
Including @wip / @pending scenarios in the report | Document shows work-in-progress as if it is accepted behaviour | Filter with not @wip before generating JSON |
| One flat tag for all scenarios | Stakeholders cannot navigate to a capability area | Apply two-level tags: @capability-name and @sprint-N |
| Publishing stale JSON from a previous run | Report shows old results after source changes | Delete reports/*.json at the start of each CI run before running tests |
| Embedding full screenshots in every step | HTML artefact becomes hundreds of MB | Use Serenity's evidence API (Serenity.recordReportData()) selectively, or configure take.screenshots=FOR_FAILURES in serenity.properties |
serenity:aggregate against JSON files from a
Cucumber-JS run is not supported; use multiple-cucumber-html-reporter for
Node projects.serenity-maven-plugin coordinates,
aggregate goal, post-integration-test phase binding, mvn verify,
serenity:check.-Dtags,
-Dcucumber.options, requirements-filtering caveat.generate-report.js, and the full options table.aggregate goal, requirements hierarchy, readme.md enrichment.cucumber-testing - upstream skill: produce Cucumber JSON
with --format json:.junit-xml-analysis (in the qa-test-reporting plugin) -
engineer-facing test result analysis (separate concern from stakeholder docs).github-actions-test-jobs (in the qa-ci-integration plugin) -
CI job conventions for the publish step.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
living-documentation, bdd, cucumber, serenity, reporting, github-pages
npx claudepluginhub testland/qa --plugin qa-bdd6 skills in this plugin
/bdd-step-library-curatorUse when a Cucumber, Behave or Reqnroll project has grown past ~50 step definitions, before writing a step that may already exist, or when new .feature files need a duplicate check. Inventories steps, merges duplicates, publishes a step-library README and a scenario coverage map./behave-testingUse for any question or task about BDD in Python, including quick how-to questions: Behave .feature files, step implementations in features/steps, environment.py hooks (sharing a browser or database between scenarios), tags, reports and CI runs, plus the pytest-bdd alternative. Has Behave layout, hook and anti-pattern notes./cucumber-testingUse for any question or task about Cucumber or Gherkin in Java, Kotlin, JavaScript or Ruby, including quick how-to questions: setting up Cucumber-JVM with JUnit 5, Cucumber-JS or Cucumber-Ruby, writing .feature files and step definitions, undefined or ambiguous steps and Cucumber expression mismatches, tags, and JUnit XML reports./gherkin-from-storiesUse whenever user stories, acceptance criteria, manual test steps or a spec need to become Gherkin, or when asked how to write good acceptance scenarios: maps each criterion to scenarios, finds Scenario Outlines and Background, reuses existing steps and flags hidden preconditions. Writes .feature files only, not step code./reqnroll-testingUse for any question or task about BDD in .NET or C#: starting with Gherkin feature files, moving off SpecFlow (end-of-life 2024-12-31), or writing [Given/When/Then] C# step bindings. Configures Reqnroll with hooks, async steps, tags and dotnet test runs, and has a SpecFlow migration path.2 plugins ship this exact skill · first indexed Nov 12, 2026
Other plugins' skills for the same job