2017 © Pedro Peláez
 

library behat-sensu-formatter

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

image

miamioh/behat-sensu-formatter

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

  • Wednesday, January 10, 2018
  • by donkidd
  • Repository
  • 8 Watchers
  • 0 Stars
  • 38 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 124 % Grown

The README.md

Installation

Prerequisites

This extension requires:, (*1)

  • 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:, (*2)

# behat.yml
default:
    suites:
    ...

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

Then add it as a formatter in your behat.yml :, (*3)

#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., (*4)

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

This will add 3 lines of metrics to the output:, (*5)

  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., (*6)

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

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, (*8)

  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

The Versions

10/01 2018

dev-master

9999999-dev

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

  Sources   Download

The Requires

 

The Development Requires

by Don Kidd

10/01 2018

v0.6.1

0.6.1.0

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

  Sources   Download

The Requires

 

The Development Requires

by Don Kidd

10/01 2018

v0.6

0.6.0.0

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

  Sources   Download

The Requires

 

The Development Requires

by Don Kidd

03/01 2018

v0.5.1

0.5.1.0

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

  Sources   Download

The Requires

 

The Development Requires

by Don Kidd

20/12 2017

v0.5

0.5.0.0

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

  Sources   Download

The Requires

 

The Development Requires

by Don Kidd