PhpStorm 2024.1 Help

Code coverage

Code coverage in PhpStorm lets you determine the share of code covered by tests and identify areas that lack sufficient test coverage.

In general, code coverage answers the question "Was this line of code executed during unit testing simulation?" Measuring code coverage is available for PHP (PHPUnit tests, Pest tests) and JavaScript (Mocha tests, Karma tests).

Code coverage results

In this section, read about:

Last modified: 11 June 2024