Skip to content

Latest commit

 

History

History
executable file
·
41 lines (32 loc) · 1.04 KB

README.md

File metadata and controls

executable file
·
41 lines (32 loc) · 1.04 KB

Behat - Custom Formatter Extension

Behat 3 extension for generating HTML reports / Documentation Reports and Testrail compatible XML reports.

Prerequisites

This extension requires:

  • PHP 7.1 or higher
  • Behat 3.x or higher

Installation

Install Plugin through composer:

$ composer require --dev behat/formatter-extension

Modifying the settings in the behat.yml file

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

Add the logo of your company

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!!

Example Report:

Report