1.0.0 ⢠Published 4 months ago
donqle-cucumber-report v1.0.0
Donqle Cucumber Report
A beautiful HTML report generator for Cucumber JSON results, created by Donqle.
Features
- š Beautiful dashboard with test statistics
- š Detailed feature and scenario views
- š·ļø Tag-based analysis
- š Step analysis with duration statistics
- š¼ļø Screenshot support for failed steps
- š Zoom and pan support for screenshots
- š± Responsive design
Installation
npm install -g donqle-cucumber-report
Usage
After installing globally, you can use the command:
donqle-cucumber-report -i path/to/your/cucumber.json
Or install locally in your project:
npm install --save-dev donqle-cucumber-report
Then use it in your project:
npx donqle-cucumber-report -i path/to/your/cucumber.json
Options
-i, --input
: Input JSON file or directory containing JSON files (required)-o, --output
: Output directory for the HTML report (default: "./report")
Examples
- Generate report from a single JSON file:
donqle-cucumber-report -i results.json
- Generate report from all JSON files in a directory:
donqle-cucumber-report -i test-results/
- Specify output directory:
donqle-cucumber-report -i results.json -o custom-report-dir
Project Structure
donqle-cucumber-report/
āāā src/
ā āāā templates/
ā ā āāā index.html # HTML template
ā āāā assets/
ā ā āāā styles.css # CSS styles
ā ā āāā script.js # JavaScript code
ā āāā generate.js # Main script
āāā package.json
āāā README.md
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
1.0.0
4 months ago