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.