A Test::BDD::Cucumber::Harness subclass that generates html reports.
$ pherkin -o Html features/ > test-report.html
The default template uses bootstrap CSS for formatting.
Example test reports from the Test::BDD::Cucumber examples are included in the distribution tar ball or can be viewed online at:
- Calculator example
-
https://markusbenning.de/cucumber-html-examples/calculator-report.html
- Digest example
-
https://markusbenning.de/cucumber-html-examples/digest-report.html
All report data is gathered and stored in $self->all_features.
For HTML generation a Template style template file is used.
A templated based on bootstrap formating is included in the DATA section of the module an will be used by default.
A filehandle to write output to; defaults to STDOUT
An Array holding a data structure with the results.
A path to a Template Toolkit template file to use for generating the HTML report.
If no path is given the content will be read from the DATA section of the module containing the default template.
The source code of the Template Toolkit template.
If no content is given it will be read from a file or the DATA section. (see template_file)
This could be used to set a title for the generated report.