Site icon Hip-Hop Website Design and Development

Cheap WordPress Development Log Blog: Setup PHPStorm to run your Behat tests with a vagrant box

In order to run Behat test from PHPStorm we need to setup our IDE in a certain way because our IDE is on the host and the Behat tool is running inside our vagrant VM, so we will need to use a remote interpreter, let’s see how we can do it:

Configure the PHP remote interpreter:

Go to settings/preferences and browse to Language and frameworks > PHP

At CLI interpreter we may have by default, so we can open the CLI interpreters dialog window from the … icon.
In that dialog we can add a new interpreter clicking in the + icon.
In our case we can add a ‘From Docker, Vagrant, VM, Remote’ and we will get different options to setup the connection to the remote interpreter. Change the name of the remote interpreter and check the box ‘Visible only for this project’.
We can use Vagrant and… Read More
Source: New feed