Test::BDD::Cucumber::Harness::Html - html output for Test::BDD::Cucumber
version 1.006
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:
https://markusbenning.de/cucumber-html-examples/calculator-report.html
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
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.
Markus Benning <ich@markusbenning.de>
This software is copyright (c) 2014 by Markus Benning.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Test::BDD::Cucumber::Harness::Html, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::BDD::Cucumber::Harness::Html
CPAN shell
perl -MCPAN -e shell install Test::BDD::Cucumber::Harness::Html
For more information on module installation, please visit the detailed CPAN module installation guide.