[GRADLE-2954] gradle jacoco plugin shows excluded packages with 0% coverage Created: 18/Nov/13  Updated: 24/Feb/14  Resolved: 24/Feb/14

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Gradle Forums Assignee: Unassigned
Resolution: Duplicate Votes: 0


If I exclude a package from coverage reporting via

test {


{ excludes = ["com.blah.*"] }


it is excluded in the jacoco runtime but not in the report generation.
this results in the package having 0% coverage in the jacoco report

Comment by Gradle Forums [ 18/Nov/13 ]

Any chance of getting a complete sample we can use to create a fix?

Comment by Gradle Forums [ 18/Nov/13 ]

You can see it in the java quickstart example if you add:

test.jacoco.excludes << "*Person"

I made a quick example in github [1]https://github.com/frankiesardo/jacoc...
As you see if you ignore a file the test coverage drops to 50% instead of being 100%
[1] https://github.com/frankiesardo/jacoco-example

Comment by Daz DeBoer [ 24/Feb/14 ]

Duplicates GRADLE-2955

Generated at Wed Jun 30 12:35:54 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.