Pest PhpStorm plugin v0.3.0 release
This blogpost will contain all features in the plugin as this is the first official release.
The installation instructions can be found here.
It is now possible to run pest test in phpstorm like any other test, by simply selecting the runner with the pest icon. After pressing run the results is in the Run window.
With inline actions
A test can also be executed on a specific line by pressing the marker on that line. It is also possible to execute a test on a specific line by opening the run configuration while having the cursor on that line.
For all the debugger users out there, it is also possible to run the tests with the debugger.
Simply press the run with debug icon, and the tests will run with the debugger enabled.
This should work with xdebug and zend debugger, however only xdebug has been tested.
Getting code coverage is also straight forward.
Use the button for running with code coverage, and the results will be shown in phpstorm.
This plugin does not only add support for running tests, autocompletion is also added thanks to @Adelf32.
On PhpUnit testcase methods
Autocompletion for PhpUnit test case methods are also possible.
By declaring that the test
uses a class, autocompletion for that class can be done.
In the screenshot below the
uses class is the default Laravel testcase class, and therefore autocompletion for the
assertAuthenticated method is possible.
On fields declared in
Declaring a field in
afterEach can be autocompleted in the test.
This project is powered by the community, so feel free to contribute as there always are ways to help out. We can be found on GitHub at pestphp/pest-intellij.