This feature is supported in Ultimate edition only.
The following is only valid when PHP Plugin is installed and enabled!
Code Coverage
for PHPUnit
shows you
how much of your code is covered with tests and marks covered and uncovered lines visually right in the editor.
In this section:
Prerequisites
-
The PHPUnit
tool is installed
on your machine
and enabled in IntelliJ IDEA.
- A Xdebug or Zend Debugger debugging engine is configured in the current PHP interpreter.
- Open the Preferences dialog box.
- Specify coverage options on the Coverage page.
- Write the tests manually.
- Create a run configuration of the type PHPUnit.
-
On the main toolbar, select the PHPUnit run configuration in the Run/Debug Configurations drop-down list
and click the Run with Coverage button
.
- Monitor the code coverage in the Coverage tool window.