HTML Reports
Since v1.0.0
Pretty HTML reports capture evaluated results and statistics.
Generate reports
- Project
- Standalone
Launch Gwen with the -f html
option to generate HTML reports when executing your features.
- Yarn
- npm
- pnpm
Example
Execute features in the gwen/features/todo folder and generate HTML reports.
yarn gwen -b -f html gwen/features/todo
Example
Execute features in the gwen/features/todo folder and generate HTML reports.
npm run gwen -- -b -f html gwen/features/todo
Example
Execute features in the gwen/features/todo folder and generate HTML reports.
pnpm gwen -b -f html gwen/features/todo
Output
- Reports will be generated in the
gwen/output/reports
directory as per the defaultgwen.cli.options.report
setting- The HTML index page will be generated at
gwen/output/reports/index.html
. - If you want reports generated in a different directory, you can either:
- Amend the above setting to change the default
- Or include the
-r|--report
CLI option and specify a directory on every launch
- The HTML index page will be generated at
Launch Gwen with the -f html
option to generate HTML reports when executing your features.
- Linux
- Windows
Output
- Since Gwen 3
- Reports will be generated in the
output/reports
directory as per the defaultgwen.cli.options.report
setting- The HTML index page will be generated at
gwen/output/reports/index.html
. - If you want reports generated in a different directory, you can either:
- Amend the above setting to change the default
- Or include the
-r|--report
CLI option to specify a directory on every launch
- The HTML index page will be generated at
- Reports will be generated in the
- For prior versions
- Include the
-r|--report
CLI option and specify a directory on every launch
- Include the
View report
Opening the generated HTML report in your browser will display the summary.
Clicking the feature link in the summary will open the feature detail.
Expand Step Defs
StepDefs are inlined and can be expanded by hovering over steps with the mouse and clicking them in the report.