Skip to content

Incorrect branch/path coverage totals for uncovered files #1007

@theseer

Description

@theseer
Q A
php-code-coverage version 10.1.3
PHP version 8.2.9
Driver Xdebug
Xdebug version (if used) 3.2.2
Installation Method PHPUnit PHAR
Usage Method PHPUnit
PHPUnit version (if used) 10.3.1

image

The above 100% - 5/5 total for serializer is wrong, as the next screenshot shows:

image

The 100% - 5/5 total is only correct for the tested/covered files of this folder. Given there are untested/uncovered files present, that total should be less than 100%, and whatever the amount of branches might be ;)

I do realize we probably do not have that information (hence the n/a). But then we probably shouldn't calculate the total?

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions