PHPackages                             brunty/behat-speedtrap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. brunty/behat-speedtrap

ActiveLibrary[Testing &amp; Quality](/categories/testing)

brunty/behat-speedtrap
======================

Extension for logging slow scenarios within Behat.

0.3(8y ago)124.1k1[6 issues](https://github.com/Brunty/behat-speedtrap/issues)MITPHPPHP &gt;=7.0

Since Feb 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Brunty/behat-speedtrap)[ Packagist](https://packagist.org/packages/brunty/behat-speedtrap)[ RSS](/packages/brunty-behat-speedtrap/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Behat Speedtrap
===============

[](#behat-speedtrap)

[![Build Status](https://camo.githubusercontent.com/32a97ddd0318a688b9f6bf355d2293f88e4370425aedb611ea72181caf395891/68747470733a2f2f7472617669732d63692e6f72672f4272756e74792f62656861742d7370656564747261702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Brunty/behat-speedtrap)

Inspired by

Installation
------------

[](#installation)

Install via composer:

`composer require brunty/behat-speedtrap --dev`

Configure
---------

[](#configure)

In your `behat.yml` file add the following extension configuration:

```
default:
  extensions:
    Brunty\Behat\SpeedtrapExtension: ~
```

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

```
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:

```
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):

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

Contributing
------------

[](#contributing)

This started as a small personal project.

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.

[Contributor Guide](CONTRIBUTING.md)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

3003d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40cdb90b0420d70582f27d22c873198f24f2704ee3f80227134a7180cf8cff51?d=identicon)[Brunty](/maintainers/Brunty)

---

Top Contributors

[![asgrim](https://avatars.githubusercontent.com/u/496145?v=4)](https://github.com/asgrim "asgrim (13 commits)")[![Brunty](https://avatars.githubusercontent.com/u/1573273?v=4)](https://github.com/Brunty "Brunty (10 commits)")

### Embed Badge

![Health badge](/badges/brunty-behat-speedtrap/health.svg)

```
[![Health](https://phpackages.com/badges/brunty-behat-speedtrap/health.svg)](https://phpackages.com/packages/brunty-behat-speedtrap)
```

###  Alternatives

[drupal/drupal-extension

Drupal extension for Behat

22215.1M147](/packages/drupal-drupal-extension)[friends-of-behat/symfony-extension

Integrates Behat with Symfony.

48223.4M551](/packages/friends-of-behat-symfony-extension)[friends-of-behat/variadic-extension

Variadic support for behat context arguments

2286.0M446](/packages/friends-of-behat-variadic-extension)[friends-of-behat/mink-extension

Mink extension for Behat

14034.2M467](/packages/friends-of-behat-mink-extension)[friends-of-behat/suite-settings-extension

Allows to overwrite suites' default settings.

2154.1M387](/packages/friends-of-behat-suite-settings-extension)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
