miamioh/behat-sensu-formatter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

miamioh/behat-sensu-formatter

Composer 安装命令:

composer require miamioh/behat-sensu-formatter

包简介

Package created to allow behat tests to be used within the sensu monitoring framework

README 文档

README

Prerequisites

This extension requires:

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

Install with composer:

$ composer require miamioh/behat-sensu-formatter

Basic usage

Activate the extension by specifying its class in your behat.yml:

# behat.yml
default:
    suites:
    ...

    extensions:
      miamioh\BehatSensuFormatter\BehatSensuFormatterExtension: ~
    ...

Then add it as a formatter in your behat.yml :

#behat.yml
  ...
  formatters:
    SensuFormatter: ~
  ...

Metric Check Type

If the check is going to be a metric check there is a change that needs to be made and another one that could be made depending on the check.

#behat.yml
  ...
  extensions:
    miamioh\BehatSensuFormatter\BehatSensuFormatterExtension:
      checkType: 'metric'
  ...

This will add 3 lines of metrics to the output:

  behat.tests.run 2 1515546664
  behat.tests.passed 2 1515546664
  behat.tests.failed 0 1515546664
  OK: All 2 tests passed

The Description of the metric, the value of the metric and the timestamp the metric was created. This information can then be used by Graphite to show a chart of passed and failed tests.

Additionally you could add the metricPreface parameter to your yml file to preface the metric name with specific information about the test run.

and another one that could be made depending on the check. so maybe metricPreface: 'test.myapp' or something like metricPreface: 'test.chrome.myapp' if you wanted to collet all your test metrics when the test is run against chrome vs maybe safari. when this preface is added then the output would be

  test.chrome.myapp.behat.tests.run 2 1515546664
  test.chrome.myapp.behat.tests.passed 2 1515546664
  test.chrome.myapp.behat.tests.failed 0 1515546664
  OK: All 2 tests passed

统计信息

  • 总下载量: 51
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 7
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-12-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固