1.0.0 • Published 4 months ago

donqle-cucumber-report v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

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

  1. Generate report from a single JSON file:
donqle-cucumber-report -i results.json
  1. Generate report from all JSON files in a directory:
donqle-cucumber-report -i test-results/
  1. 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