Reports
Generate and interpret Restlyn HTML, PDF, and JSON reports, including CLI flags for CI pipelines.
On this page
Restlyn provides detailed test execution reports in HTML and, with optional Puppeteer installed, PDF formats.
π How Reports Are Generated
After running your tests using:
restlyn verify --report
Restlyn will:
- Run
.test.jsfiles using Mocha - Collect results, logs, metadata
-
Write a JSON summary to:
generated/report/restlyn-report.json -
Create:
restlyn-report.html(interactive, collapsible view)restlyn-report.pdf(flat printable version)
Both are saved to:
generated/report/
β¨ Whatβs Included in the Report
Each scenario in the report includes:
- β Status (pass/fail)
- β Duration (ms)
- π Feature, Scenario, and optional Title
- π Tags like
@debug,@retry,@skip - πͺ Steps from
.feature - π Full Log Output
- π§Ύ Schema validation errors (if any)
π§Ύ HTML Report
- Auto-opens in browser after
--report - Fully collapsible per test case
- Log section expandable via
<details>
π PDF Report
- Requires optional Puppeteer and its matching browser installation; without it PDF export is skipped
- Non-collapsible, always expanded for printing
π Timestamp
Each report includes the test run timestamp (e.g., 2025-08-03T21:45:00Z) under the header.
π Retry Insights
If scenarios include @retry(n) tags:
- Retry count is visible in the test metadata
- Mochaβs
.retries()is applied
π§© Behind the Scenes
- Generated using custom
verifyAllTests()+generateReport() - Uses
openandpuppeteerto open and export - Supports inline logs, schema diffs, token capture traces
Use restlyn verify --report after every test run to stay informed!
Optional PDF dependency
npm install --save-dev puppeteer
Allow its browser installation to complete. Re-run restlyn verify --report and check that restlyn-report.pdf actually exists. A PDF-related console message alone does not confirm successful export.
Migrated from the Restlyn documentation, with reviewed example and configuration corrections. Original Restlyn documentation.