behat-profiling-extension
Overview
The Behat extension that allows you to profile Behat steps., (*1)
Installation
1. Using Composer (recommended)
To install behat-profiling-extension
with Composer just add the
following to your composer.json
file:, (*2)
{
"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:, (*3)
$ php composer.phar update imt/behat-profiling-extension
Now, Composer will automatically download all required files, and install them
for you., (*4)
Usage
To enable behat-profiling-extension
just add the following to your
behat.yml
file:, (*5)
default:
extensions:
IMT\BehatProfilingExtension\Extension: ~
That's all!, (*6)
If you want to disable/enable the extension depending of environment you can use use_env
parameter:, (*7)
default:
extensions:
IMT\BehatProfilingExtension\Extension:
use_env: BEHAT_PROFILING_ENABLED
$ BEHAT_PROFILING_ENABLED=true behat
Testing
$ make test
Contributing
Please see CONTRIBUTING for details., (*8)
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., (*9)