A Node.js CLI tool to generate PDF reports from test screenshots.
npm install pdf-reportifyGenerate consolidated PDF reports from test run screenshots.
pdf-reportifystep*.png images per test casereports/bash
npm install
`$3
- With the provided CLI command (after install):
`bash
npx pdf-reportify --path ./path/to/screenshots
`- Or directly via Node:
`bash
node cli.js --path ./path/to/screenshots
`$3
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.jpeg
`Running the command:
`bash
npx pdf-reportify --path ./screenshots
`Images are ordered by file creation time (oldest first). Produces PDFs under:
`
screenshots/
reports/
Login test_report.pdf
Checkout flow_report.pdf
`$3
- --path, -p (required): path to the root screenshots directory
- --help, -h: show help$3
- 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`