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
miamioh/behat-sensu-formatter 适用场景与选型建议
miamioh/behat-sensu-formatter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 51 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 12 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 miamioh/behat-sensu-formatter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 miamioh/behat-sensu-formatter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 51
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-12-11