CtrlK
BlogDocsLog inGet started
Tessl Logo

testland/living-documentation-publisher

Converts passing Cucumber JSON output into stakeholder-facing living documentation: generates HTML reports via multiple-cucumber-html-reporter (Node) or Serenity BDD aggregate (JVM), applies Gherkin tags to drive report sections, and publishes to GitHub/GitLab Pages in CI. Use when BDD scenarios are in use and the team needs an always-current, non-test-engineer-readable document showing which acceptance criteria pass.

73

Quality

92%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Overview
Quality
Evals
Security
Files

serenity-reporter.mdreferences/

Serenity BDD aggregate report (JVM)

Renders living documentation for Maven/Gradle projects that run CucumberWithSerenity. Referenced from living-documentation-publisher Step 3.

Bind the Serenity Maven plugin

Add the Serenity Maven plugin and bind it to post-integration-test (serenity-bdd/the-serenity-book, maven.adoc):

<plugin>
  <groupId>net.serenity-bdd.maven.plugins</groupId>
  <artifactId>serenity-maven-plugin</artifactId>
  <version>${serenity.maven.version}</version>
  <executions>
    <execution>
      <id>serenity-reports</id>
      <phase>post-integration-test</phase>
      <goals><goal>aggregate</goal></goals>
    </execution>
  </executions>
</plugin>

Run

Run the full pipeline:

mvn verify

Or regenerate the report from existing test data without re-running tests:

mvn serenity:aggregate

Requirements hierarchy

The Requirements tab of the generated report renders living documentation: Serenity reads the directory hierarchy under src/test/resources/features/[theme]/[capability]/ and maps it to the requirements hierarchy (serenity-bdd/the-serenity-book, living-documentation.adoc).

Set hierarchy labels in serenity.properties:

serenity.requirements.types=theme,capability,story

Add a readme.md at each directory level; Serenity renders it as contextual prose above the scenario list, turning the Requirements tab into a readable illustrated user manual (serenity-bdd/the-serenity-book, living-documentation.adoc).

Sources

  • ld - Serenity BDD book, living-documentation.adoc: definition, Requirements tab, hierarchy, serenity.properties keys (serenity.requirements.types, report.assets.directory), readme.md enrichment, evidence API.
  • mv - Serenity BDD book, maven.adoc: serenity-maven-plugin coordinates (net.serenity-bdd.maven.plugins:serenity-maven-plugin), aggregate goal, post-integration-test phase binding, mvn verify, serenity:check.

SKILL.md

tile.json