Jacoco Exclude Package From Coverage



From

Jacoco Exclude Package From CoverageExclude

Full name: org.jacoco:jacoco-maven-plugin:0.8.7-SNAPSHOT:check. This example requires a line coverage minimum of 50% for every class except test classes. A list of class files to exclude from analysis. May use wildcard characters (. and?). When not specified nothing will be excluded. Property setting to exclude packages from jacoco. Setting this leads to the situation that packages are excluded from coverage analysis however show up having 0% which accumulates to bad total scores. Property 'sonar.jacoco.exclusions', excludedClasses.join(',').

Exclude

Jacoco Test

> So, I tried that. IT did help but the classes still show as 0%.
Where does it show 0%? In the generated JaCoCo report?
Best regards,
-marc

On 2013-05-01 16:07, John D. Ament wrote:
> So, I tried that. IT did help but the classes still show as 0%. I
> don't want to show them at all.
>
> On Tuesday, April 30, 2013 8:36:46 AM UTC-4, Marc R. Hoffmann wrote:
>
>> Hi,
>>
>> there are some known inconsistencies regarding includes/excludes:
>>
>> https://github.com/jacoco/jacoco/issues/34 [1]
>> [2]
>>>> [1].
>>>>>
>>>>>
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>
>>> Groups 'JaCoCo and EclEmma Users' group.
>>> To unsubscribe from this group and stop receiving emails from it,
>>> send an email to jacoco+un...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out
>> [3]
>>> [2].
>>>
>>>
>>>
>>> Links:
>>> ------
>>> [1] https://groups.google.com/groups/opt_out [4]
>>> [2] https://groups.google.com/groups/opt_out [5]
>
> --
> You received this message because you are subscribed to the Google
> Groups 'JaCoCo and EclEmma Users' group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to jac...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out
> [6].
>
>
>
> Links:
> ------
> [1] https://github.com/jacoco/jacoco/issues/34
> [2] https://groups.google.com/groups/opt_out
> [3] https://groups.google.com/groups/opt_out
> [4] https://groups.google.com/groups/opt_out
> [5] https://groups.google.com/groups/opt_out
> [6] https://groups.google.com/groups/opt_out