imt/behat-profiling-extension

The Behat extension that allows you to profile Behat steps

0.9.1 2022-08-10 12:16 UTC

This package is not auto-updated.

Last update: 2024-11-13 23:44:21 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.