2017 © Pedro Peláez
 

library behat-speedtrap

Extension for logging slow scenarios within Behat.

image

brunty/behat-speedtrap

Extension for logging slow scenarios within Behat.

  • Wednesday, February 21, 2018
  • by Brunty
  • Repository
  • 1 Watchers
  • 12 Stars
  • 149 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 5 Open issues
  • 4 Versions
  • 22 % Grown

The README.md

Behat Speedtrap

Build Status, (*1)

Inspired by https://github.com/johnkary/phpunit-speedtrap, (*2)

Installation

Install via composer:, (*3)

composer require brunty/behat-speedtrap --dev, (*4)

Configure

In your behat.yml file add the following extension configuration:, (*5)

default:
  extensions:
    Brunty\Behat\SpeedtrapExtension: ~

To configure the threshold for slow scenarios (default 2000ms) specify the scenario_threshold configuration option:, (*6)

default:
  extensions:
    Brunty\Behat\SpeedtrapExtension:
      scenario_threshold: 500 # this is in ms

To configure the number of scenarios reported (default 10) specify the report_length configuration option:, (*7)

default:
  extensions:
    Brunty\Behat\SpeedtrapExtension:
      report_length: 2

Optionally you may also set step_threshold for individual steps to be reported. When the step threshold is 0, the step threshold is ignored. The step threshold defaults to 0 (ignored):, (*8)

default:
  extensions:
    Brunty\Behat\SpeedtrapExtension:
      step_threshold: 100 # this is in ms

Contributing

This started as a small personal project., (*9)

Although this project is small, openness and inclusivity are taken seriously. To that end a code of conduct (listed in the contributing guide) has been adopted., (*10)

Contributor Guide, (*11)

The Versions

21/02 2018

dev-master

9999999-dev

Extension for logging slow scenarios within Behat.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/02 2018

0.3

0.3.0.0

Extension for logging slow scenarios within Behat.

  Sources   Download

MIT

The Requires

 

The Development Requires

20/02 2018

0.2

0.2.0.0

Extension for logging slow scenarios within Behat.

  Sources   Download

MIT

The Requires

 

The Development Requires

19/02 2018

0.1

0.1.0.0

Extension for logging slow scenarios within Behat.

  Sources   Download

MIT

The Requires

 

The Development Requires