Code coverage is incorrectly assumed to be 100% on partial builds.
We have a mono repo with multiple subdirectories as projects which we do not build and test if there are no changes to save CI time. We upload coverage using the -F <topic>
parameter to segment out the various subdirectories.
On pull requests where a <topic>
is not built the Github coverage numbers show as 100%. While it would be great if it showed the percentage from the branch base for this <topic>
, 100% is certainly not correct.
I have uploaded a screen shot of the report on a build that only touched the “goservices” topic. You can see that the “android” topic is reported as 100% even though no coverage results were pushed for this topic.