Serenity/JS HTML Reporter
@serenity-js/html-reporter is a 3rd party package, for more information please see GitHub | npm
@serenity-js/html-reporter produces a self-contained, interactive HTML report from your Serenity/JS test results — complete with screenshots, activity trees, execution history, and trend analysis.
📊 See the Serenity/JS test suite report →
Features
- Single HTML file — all JavaScript, CSS, and chart logic inlined in
index.html; test data loaded from a companiondata.jsfile. Works fromfile://, GitHub Pages, S3, or any static host - No external dependencies at runtime — works in air-gapped environments, no CDN links, no network requests
- Execution history and trends — preserves data across runs, showing how tests behave over time
- Activity trees with evidence — every Task, Interaction, and assertion shown with timing, screenshots, and HTTP exchanges
- Consistency analysis — identifies flaky, degraded, and recovered tests automatically
- Error clustering — groups failures by root cause so you can see which tests share the same underlying problem
- Living documentation — renders README files alongside test results in the capabilities view
- Dark and light themes — detects OS preference, with manual toggle
Installation
npm install --save-dev @serenity-js/core @serenity-js/web @serenity-js/html-reporter
Note: @serenity-js/web is optional but recommended — it enables Photographer to capture screenshots that the HTML Reporter embeds in the report.
