Currently we take unit take coverate figure from top-level coverage element in cobertura XML. However to get better results we need to target the actual coverage for the package. See example below:
In the example above you can see that overall coverage can sometimes be diluted by neighbouring packages, which makes results inaccurate. So onstead of using /covarage attribute line-rate we should use /coverage/packages/package[@name='PackageName'].
Currently we take unit take coverate figure from top-level coverage element in cobertura XML. However to get better results we need to target the actual coverage for the package. See example below:
In the example above you can see that overall coverage can sometimes be diluted by neighbouring packages, which makes results inaccurate. So onstead of using
/covarage
attribute line-rate we should use/coverage/packages/package[@name='PackageName']
.