Skip to content

An PHP Formatter producing HMLT reports, and XML Compatible for importing results to TestRail.

License

Notifications You must be signed in to change notification settings

asenlog/behat-formatter-extension

Repository files navigation

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

About

An PHP Formatter producing HMLT reports, and XML Compatible for importing results to TestRail.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published