PhpStorm
 
Get PhpStorm

Run tests with code coverage

Last modified: 08 October 2024

PhpStorm provides a dedicated action for running tests with the code coverage measurement.

If the Show options before applying coverage to the editor checkbox has been selected in Settings CtrlAlt0S | Build, Execution, Deployment | Coverage, a dialog appears where you can choose whether you want to replace the active coverage suites, add the collected data to the active suites, or not apply coverage data. You can also opt to skip this dialog in the future. In case any other option has been selected, the respective action will be performed silently.

Now you can explore the collected coverage data in the Coverage tool window, the Project tool window, and in the editor.