pdf-reportify
v0.0.8
Published
A Node.js CLI tool to generate PDF reports from test screenshots.
Maintainers
Readme
pdf-reportify
Generate consolidated PDF reports from test run screenshots.
Features
- CLI command:
pdf-reportify - Input: Folders containing
step*.pngimages per test case - Output: One PDF per test case saved under
reports/
Requirements
- Node.js 16+
Install
- Local dev/use inside this repo:
npm installUsage
- With the provided CLI command (after install):
npx pdf-reportify --path ./path/to/screenshots- Or directly via Node:
node cli.js --path ./path/to/screenshotsScreenshots directory structure
Place screenshots under a parent folder where each test case has its own subfolder. Image files can have any name; supported extensions are .png, .jpg, .jpeg.
Example:
screenshots/
Login test/
001.png
something.png
Checkout flow/
screenshot-a.jpg
screenshot-b.jpegRunning the command:
npx pdf-reportify --path ./screenshotsImages are ordered by file creation time (oldest first). Produces PDFs under:
screenshots/
reports/
Login test_report.pdf
Checkout flow_report.pdfOptions
--path, -p(required): path to the root screenshots directory--help, -h: show help
Notes
- Supported image formats:
.png,.jpg,.jpeg(others are skipped with a warning) - PDFs are generated per test-case subfolder; images are ordered by the number in
step*.png
Author
Created by papitodev.
License
MIT
