for Windows and Linux
for OS X
This page is available only when the PHP and Behat plugins are installed and enabled.
The plugins are not bundled with IntelliJ IDEA, but they can be installed from the JetBrains plugin repository
as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins.
Once enabled, the plugins are available at the IDE level, that is, you can use it in all your IntelliJ IDEA projects.
Before you start,
make sure the PHP interpreter is configured in IntelliJ IDEA on the PHP page,
as described in Enabling PHP Support.
On this page, configure the Behat framework to enable behaviour-driven development in IntelliJ IDEA.
In this field, IntelliJ IDEA displays the appointed PHP interpreter configuration to use with Behat.
The field is read-only, to update the chosen interpreter configuration or create a new one, click the
whereupon IntelliJ IDEA brings you to the Interpreters dialog box.
In this area, specify the Behat installation to use.
Path to Behat directory of phar file:
in this text box, specify the location of the
behat.phar archive or the folder with the Behat executable file.
Behat does not necessarily have to be installed under the current project root. You can type the path manually
or click the button and choose the relevant location in the dialog box that opens.
Download behat.phar from https://github.com/downloads/Behat/Behat/behat.phar: click this link to have IntelliJ IDEA download the
This approach works only if you have already an account on GitHub and you have configured access to this account in IntelliJ IDEA,
see Registering GitHub Account in IntelliJ IDEA.
Behat version: this read-only field shows the version of the specified Behat installation.
IntelliJ IDEA detects the version when you click the Refresh icon .
The default value is Not installed
In this area,
appoint the configuration |
.yaml file to use for launching and executing scenarios.
By default, Behat looks for a
behat.yaml configuration file in the project root folder or in the
You can appoint a custom configuration file.
Default configuration file: select this check box
to specify your own
.yaml configuration file.
Ths file will be later used as default in all Behat run/debug configurations.
In the text box, specify the location of the configuration file to use. Type the path manually
or click the button and choose the file in the dialog box that opens.
Clear the check box
to have Behat use the
behat.yaml configuration file from the project root folder or from the
If no such file is found, test execution fails, therefore it may be more reliable to specify the configuration file explicitly.
Last modified: 23 November 2016