imt / behat-profiling-extension
The Behat extension that allows you to profile Behat steps
Installs: 23 647
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 1
Forks: 3
pkg:composer/imt/behat-profiling-extension
Requires
- php: >=5.3.3
- behat/behat: ~3
- symfony/stopwatch: ^3.0||^4.0||^5.0||^6.0
Requires (Dev)
This package is not auto-updated.
Last update: 2025-10-16 04:09:22 UTC
README
Overview
The Behat extension that allows you to profile Behat steps.
Installation
1. Using Composer (recommended)
To install behat-profiling-extension with Composer just add the
following to your composer.json file:
{
"require-dev": {
"imt/behat-profiling-extension": "0.9.*"
}
}
Then, you can install the new dependencies by running Composer's update command
from the directory where your composer.json file is located:
$ php composer.phar update imt/behat-profiling-extension
Now, Composer will automatically download all required files, and install them for you.
Usage
To enable behat-profiling-extension just add the following to your
behat.yml file:
default: extensions: IMT\BehatProfilingExtension\Extension: ~
That's all!
If you want to disable/enable the extension depending of environment you can use use_env parameter:
default: extensions: IMT\BehatProfilingExtension\Extension: use_env: BEHAT_PROFILING_ENABLED
$ BEHAT_PROFILING_ENABLED=true behat
Testing
$ make test
Contributing
Please see CONTRIBUTING for details.
Credits
License
This library is released under the MIT license. See the complete license in the
LICENSE file that is distributed with this source code.