2017 © Pedro Peláez
 

library behat-html-formatter

This will create a html formatter for Behat.

image

dragoonis/behat-html-formatter

This will create a html formatter for Behat.

  • Monday, March 28, 2016
  • by dragoonis
  • Repository
  • 1 Watchers
  • 0 Stars
  • 378 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 79 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

BehatHtmlFormatterPlugin

Suggestions are more than welcome !, (*1)

This is a behat 3 extension to generate HTML reports from your test results., (*2)

Add this to your behat.yml file:, (*3)

formatters:
    html:
        output_path: %paths.base%/build/html/behat
  extensions:
    emuse\BehatHTMLFormatter\BehatHTMLFormatterExtension:
        name: html
        renderer: Twig,Behat2
        file_name: Index
        print_args: true
        loop_break: true

The output parameter is relative to %paths.base% and, when omitted, will default to that same path., (*4)

The renderer is the renderer engine and the report format that you want to be generated., (*5)

The file_name is optional. When it is added, the report name will be fixed instead fo generated, and this file will be overwritten with every build., (*6)

Actually, there is 3 formats :, (*7)

  • Twig : new report format based on Twig, requires Twig installed
  • Behat2 : like Behat 2 HTML report
  • Minimal : ultra minimal...

You must specify the format that you want to use in the renderer parameter., (*8)

You can combine formats to generate multiple reports with multiple formats at one time for one test suite : you just need to separate them by commas, (*9)

File names have this format : "renderer name"_*"date hour"*, (*10)

Twig renderer only parameters:, (*11)

The print_args is optional. When it is added, the report will contain the arguments for each step if exists. (e.g. Tables), (*12)

The print_outp is optional. When it is added, the report will contain the output of each step if exists. (e.g. Exceptions), (*13)

The loop_break is optional. When it is added, Scenario Outlines printed to the report will have a break line separating the executions., (*14)

To be done:

  1. Add parameters for behat.yml file
  2. Add bootstrap as dependency
  3. clean up html report
  4. Add out parameter

Screenshots

Twig :, (*15)

, (*16)

Behat2 :, (*17)

, (*18)

The Versions

28/03 2016

dev-master

9999999-dev

This will create a html formatter for Behat.

  Sources   Download

The Requires

 

by Neal Vanmeert

27/05 2015

v0.1.0

0.1.0.0

This will create a html formatter for Behat.

  Sources   Download

The Requires

 

by Neal Vanmeert