The Behat extension that allows you to profile Behat steps.
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.
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
$ make test
Please see CONTRIBUTING for details.
This library is released under the MIT license. See the complete license in the
LICENSE
file that is distributed with this source code.