2017 © Pedro Peláez
 

behat-extension common-formatters

Commonly used formatters for Behat

image

behat/common-formatters

Commonly used formatters for Behat

  • Sunday, April 26, 2015
  • by headrevision
  • Repository
  • 6 Watchers
  • 25 Stars
  • 59,011 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 11 Forks
  • 2 Open issues
  • 2 Versions
  • 2 % Grown

The README.md

CommonFormatters Behat extension

Build
Status, (*1)

An aggregation of extra formatters for Behat supposed to be used commonly., (*2)

Installation

See https://github.com/Behat/CommonFormatters/blob/master/doc/index.rst, (*3)

Formatters that distinguish between an error and a failure in terms of xUnit's notion

See https://github.com/Behat/Behat/issues/111, (*4)

  • A failed step is the equivalent of an error in xUnit.
  • A false step is the equivalent of a failure in xUnit (colored magenta by the formatters).
  • Actually a false step is a failed step too, it is just a fine-grained interpretation of a failed step (complementarily there can be non-false steps among failed steps).

ProgressWithFalseStepsFormatter

https://github.com/Behat/CommonFormatters/blob/master/src/Behat/CommonFormatters/ProgressWithFalseStepsFormatter.php, (*5)

ProgressWithFalseStepsFormatter, (*6)

PrettyWithFalseStepsFormatter

https://github.com/Behat/CommonFormatters/blob/master/src/Behat/CommonFormatters/PrettyWithFalseStepsFormatter.php, (*7)

PrettyWithFalseStepsFormatter, (*8)

HtmlWithFalseStepsFormatter

https://github.com/Behat/CommonFormatters/blob/master/src/Behat/CommonFormatters/HtmlWithFalseStepsFormatter.php, (*9)

HtmlWithFalseStepsFormatter, (*10)

Formatter that dumps the most important information about a suite run as JSON

JsonFormatter

https://github.com/Behat/CommonFormatters/blob/master/src/Behat/CommonFormatters/JsonFormatter.php, (*11)

{
  date: "2012-11-20: 14:55:31",
  features: [
    {
      "title": "A feature",
      "desc": null,
      "tags": [
        "foo"
      ],
      "result": "passed",
      "scenarios": [
        {
          "title": "A scenario",
          "isOutline": false,
          "tags": [
            "bar"
          ],
          "result": "passed",
          "steps": [
            {
              "text": "some precondition",
              "type": "Given",
              "isBackground": false,
              "result": "passed"
            },
            {
              "text": "some action",
              "type": "When",
              "isBackground": false,
              "result": "passed"
            },
            {
              "text": "some outcome",
              "type": "Then",
              "isBackground": false,
              "result": "passed"
            }
          ]
        }
      ]
    }
  ]
}

Formatter that adds a new line to a CSV file for each suite run

CsvStatisticsFormatter

https://github.com/Behat/CommonFormatters/blob/master/src/Behat/CommonFormatters/CsvStatisticsFormatter.php, (*12)

execution date,total execution time,number of features,number of features with failures,number of scenarios,number of scenarios with failures,number of steps,number of failed steps
Fri 30 Mar 2012 11:36:57,2m44.987s,2,1,39,2,155,2

The Versions

26/04 2015

dev-master

9999999-dev http://behat.org/

Commonly used formatters for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fabian Kiss

bdd behat

22/10 2013

v1.2.0

1.2.0.0 http://behat.org/

Commonly used formatters for Behat

  Sources   Download

MIT

The Requires

 

The Development Requires

by Fabian Kiss

bdd behat