Code coverage
Code coverage in PhpStorm allows you to perform on-the-fly line coverage measuring for your code with low runtime overhead. In general, line 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, and Karma tests).
The coverage measurement results comprise a coverage suite. You can have the results of a new simulation merged with any existing suite. In this case, a line will be considered covered if it is covered by at least one of the simulations.
A coverage suite is generated every time a test or application with code coverage measurement is executed. It is possible to have an unlimited number of coverage suites.