PHPackages                             bex/behat-step-time-logger - 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. bex/behat-step-time-logger

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

bex/behat-step-time-logger
==========================

Extension for behat to help find slow scenario steps by logging the step times

2.0.0(7y ago)261.5M—5.9%9[4 issues](https://github.com/tkotosz/behat-step-time-logger/issues)[1 PRs](https://github.com/tkotosz/behat-step-time-logger/pulls)1MITPHPPHP &gt;=5.5

Since Nov 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tkotosz/behat-step-time-logger)[ Packagist](https://packagist.org/packages/bex/behat-step-time-logger)[ Docs](https://github.com/tkotosz/behat-step-time-logger)[ RSS](/packages/bex-behat-step-time-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (5)Used By (1)

Behat-StepTimeLoggerExtension
=============================

[](#behat-steptimeloggerextension)

[![License](https://camo.githubusercontent.com/c2847caf04e92956c8b408e81e9d9d2b461a11262d2603ff735ab1f1a1965ab9/68747470733a2f2f706f7365722e707567782e6f72672f6265782f62656861742d737465702d74696d652d6c6f676765722f6c6963656e7365)](https://packagist.org/packages/bex/behat-step-time-logger)[![Latest Stable Version](https://camo.githubusercontent.com/3417331ceb4d31e9798632bfa9fef912f120b773bd79a18b9758df907e6241df/68747470733a2f2f706f7365722e707567782e6f72672f6265782f62656861742d737465702d74696d652d6c6f676765722f76657273696f6e)](https://packagist.org/packages/bex/behat-step-time-logger)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7f50c4e57c80838bb0184bdc2afcf9b4837461851374ec0697be36b9efbd3f86/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746b6f746f737a2f62656861742d737465702d74696d652d6c6f676765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tkotosz/behat-step-time-logger/?branch=master)[![Build Status](https://camo.githubusercontent.com/09ef0e1ccf1de6c790d700e94952e257395af434be4c5831db6d5c4c4b378c37/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f746b6f746f737a2f62656861742d737465702d74696d652d6c6f676765722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/tkotosz/behat-step-time-logger/build-status/master)[![Build Status](https://camo.githubusercontent.com/cd8fa302d5539c3ec06b0b47986794a401ad7ca3218dc8b5571dd1c84b53118a/68747470733a2f2f7472617669732d63692e6f72672f746b6f746f737a2f62656861742d737465702d74696d652d6c6f676765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/tkotosz/behat-step-time-logger)

Behat-StepTimeLoggerExtension helps you find slow behat scenario steps by logging the step times.

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

[](#installation)

Install by adding to your `composer.json`:

```
composer require --dev bex/behat-step-time-logger
```

Configuration
-------------

[](#configuration)

Enable the extension in `behat.yml` like this:

```
default:
  extensions:
    Bex\Behat\StepTimeLoggerExtension: ~
```

You can configure which output printer should be used:

```
default:
  extensions:
    Bex\Behat\StepTimeLoggerExtension:
      output: csv # possible values: console, csv. default value: console
```

You can even enable both output printer at once:

```
default:
  extensions:
    Bex\Behat\StepTimeLoggerExtension:
      output: [console, csv]
```

You can enable the logger to run every time even if you don't use the --log-step-times flag:

```
default:
  extensions:
    Bex\Behat\StepTimeLoggerExtension:
      enabled_always: true
```

You can configure the output directory of the csv printer as well:

```
ci:
  extensions:
    Bex\Behat\StepTimeLoggerExtension:
      output_directory: /your/path/for/the/csvfile # by default it will be saved to the /tmp/steptimelogger directory
```

Usage
-----

[](#usage)

When debugging a particular scenario, use the `--log-step-times` flag at the cli:

```
bin/behat --log-step-times
```

Or use the `enabled_always` config setting to run the logger every time. (See configuration section)

Example output
--------------

[](#example-output)

```
+------------------------+--------------+-----------------------------------------------------+
| Average execution Time | Called count | Total Cost | Step name                              |
+------------------------+--------------+-----------------------------------------------------+
| 1.73161                | 2            | 3.46322    | I am on page "test-product.html"       |
| 0.30817                | 1            | 0.30817    | I should see "$99,999.00" as the price |
| 0.05326                | 2            | 0.10652    | I should see "Add to Compare"          |
+------------------------+--------------+-----------------------------------------------------+
```

```
Step time log has been saved. Open at /tmp/steptimelogger/step-times-1447580698.csv
```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~353 days

Total

4

Last Release

2776d ago

Major Versions

1.0.2 → 2.0.02018-10-12

PHP version history (2 changes)1.0.0PHP &gt;=5.4

2.0.0PHP &gt;=5.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/6451ac5fdc814bfa3aec1b3cf746fdb3ccec68ccbbe3a6f30b3b6c9266b0cb79?d=identicon)[tkotosz](/maintainers/tkotosz)

---

Top Contributors

[![donis](https://avatars.githubusercontent.com/u/197693?v=4)](https://github.com/donis "donis (4 commits)")[![MasonM](https://avatars.githubusercontent.com/u/651224?v=4)](https://github.com/MasonM "MasonM (1 commits)")[![pamil](https://avatars.githubusercontent.com/u/1897953?v=4)](https://github.com/pamil "pamil (1 commits)")

---

Tags

BDDTDDBehat

### Embed Badge

![Health badge](/badges/bex-behat-step-time-logger/health.svg)

```
[![Health](https://phpackages.com/badges/bex-behat-step-time-logger/health.svg)](https://phpackages.com/packages/bex-behat-step-time-logger)
```

###  Alternatives

[polishsymfonycommunity/symfony-mocker-container

Provides base Symfony dependency injection container enabling service mocking.

1468.0M237](/packages/polishsymfonycommunity-symfony-mocker-container)[bex/behat-extension-driver-locator

Driver locator tool for behat extensions

385.2M4](/packages/bex-behat-extension-driver-locator)[ciaranmcnulty/behat-stepthroughextension

Extension for behat to help debug failing scenarios

601.6M5](/packages/ciaranmcnulty-behat-stepthroughextension)[sensiolabs/behat-page-object-extension

Page object extension for Behat

1166.5M27](/packages/sensiolabs-behat-page-object-extension)[ezsystems/behat-screenshot-image-driver-cloudinary

Cloudinary image driver for bex/behat-screenshot behat extension

28992.5k16](/packages/ezsystems-behat-screenshot-image-driver-cloudinary)[dvdoug/behat-code-coverage

Generate Code Coverage reports for Behat tests

593.6M37](/packages/dvdoug-behat-code-coverage)

PHPackages © 2026

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