Reporting
Restlyn provides detailed test execution reports in both HTML and 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/verify-report.json -
Create:
report.html(interactive, collapsible view)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β
- Automatically saved alongside
report.html - 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!
β‘οΈ Next: Schema Validation