Behat 3 extension for generating HTML reports / Documentation Reports and Testrail compatible XML reports.
This extension requires:
- PHP 7.1 or higher
- Behat 3.x or higher
$ composer require --dev behat/formatter-extension
Add the following settings to your behat.yml file.
The report will be generated in ./build/behat/
formatters:
html:
output_path: "%paths.base%/build/behat/"
extensions:
App\CustomFormatterExtension:
name: html
renderer: Report,Testrail
file_names: report,testrail
print_args: true
print_outp: true
loop_break: true
Modify the templates/report.html.twig on line 26 and add the logo of your company so it can be added to the report too!!