We continue developing integration with tools essential for each developer who cares about the quality of his code. This time we want to introduce you Code Coverage for PHPUnit. What is Code Coverage for PHPUnit? It shows you how much of your code is covered with tests and marks covered and uncovered lines visually right in the editor.
Let’s try to get your first code coverage measurement in PhpStorm!
- Enable Xdebug or Zend Debugger extension in your PHP interpreter configuration (see Xdebug installation guide and Zend Debugger installation guide).
- Choose an existing ‘PHPUnit’ run configuration or create a new one.
- Launch the run configuration using the new ‘Coverage’ button.
That is all!
Develop with pleasure!