Hi Vinicius,
as Ilija mentioned you can see here an overall view on the current 55%
line coverage in PHP. I guess its "line coverage" (a less strong code
coverage type in comparison to types like "branch coverage", "MC/DC" or
wonderful "path coverage"):
https://app.codecov.io/github/php/php-src?search=&trend=all%20time
More important than high line coverage would be to collect the
requirements of features in a project, which should be tested plus
negative variants of the reuirements. So, high code coverage is fine,
but high test coverage would be more helpful. :)
Here some sloppy explanations:
Code coverage:
Percentage of how many lines of code are covered by automated tests.
Test coverage:
Percentage of how many defined test cases covered real requirements.
Requirement coverage:
Percentage of how many reuirements are well defined and how many are
missing.
Be ware of:
100% line coverage does not mean anything other that 100% of the lines
of a project a "covered" by "any" automated tests, Your project still
includes bugs, missing features, security problems and crashes. So
additional coverage types like input value coverage, path coverage,
MC/DC and other helps to have more confidents in the correctness of the
project. :)
Best regards,
Thomas
Am 07.08.2025 17:44 schrieb Ilija Tovilo:
Hi Vinicius
On Thu, Aug 7, 2025 at 5:20 PM Vinicius Dias <carlosv...@gmail.com>
wrote:
I would like to know how or where I can find the code coverage for
php-src to see if there is any uncovered code I might be able to
contribute with new tests.
It lives here:
https://app.codecov.io/github/php/php-src
However, it seems it's currently borked. The nightly job succeeded, so
I'm not immediately sure what's wrong. I'll put it on my list, unless
somebody beats me to it.
Ilija