You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above 100% - 5/5 total for serializer is wrong, as the next screenshot shows:
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?
The text was updated successfully, but these errors were encountered:
I do realize we probably do not have that information (hence the n/a)
Yes, it's exactly that - the branches/paths are calculated by Xdebug, so if a file isn't processed then it's unknown (N.B. processed does not mean tested, merely loaded is sufficient). For the purposes of the statistical calculations, unknown is treated as 0 (see https://github.com/sebastianbergmann/php-code-coverage/blob/main/src/Node/File.php#L393 etc)
For v9, anyone who had processUncoveredFiles set to true wouldn't encounter this, as all files would be include()d but that setting doesn't exist anymore.
But then we probably shouldn't calculate the total?
I wouldn't recommend that, because that would mean that the root-level stats would display n/a if there was even a single uncovered file in the entire report - but maybe the number could be displayed with an asterisk and a tooltip that explains it's based on partial data?
The above
100% - 5/5
total forserializer
is wrong, as the next screenshot shows: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?The text was updated successfully, but these errors were encountered: