Skip to content

ihortymoshenko/behat-profiling-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

behat-profiling-extension

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.