承接 behat/common-formatters 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

behat/common-formatters

最新稳定版本:v1.2.0

Composer 安装命令:

composer require behat/common-formatters

包简介

Commonly used formatters for Behat

关键字:

README 文档

README

This package is abandoned

This package (which was never updated for Behat v3.x) is now abandoned and will not receive further updates.

Build Status

An aggregation of extra formatters for Behat supposed to be used commonly.

Installation

See https://github.com/Behat/CommonFormatters/blob/master/doc/index.rst

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

See Behat/Behat#111

  • 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

ProgressWithFalseStepsFormatter

PrettyWithFalseStepsFormatter

https://github.com/Behat/CommonFormatters/blob/master/src/Behat/CommonFormatters/PrettyWithFalseStepsFormatter.php

PrettyWithFalseStepsFormatter

HtmlWithFalseStepsFormatter

https://github.com/Behat/CommonFormatters/blob/master/src/Behat/CommonFormatters/HtmlWithFalseStepsFormatter.php

HtmlWithFalseStepsFormatter

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

{
  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

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

统计信息

  • 总下载量: 84.32k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 22
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 22
  • Watchers: 7
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-08-31