Return to site

Jacoco Exclude Class

broken image


Full name:

org.jacoco:jacoco-maven-plugin:0.8.7-SNAPSHOT:check

Jacoco Exclude Class

Description:

I'm having trouble getting a jacoco/junit ant target to exclude classes from coverage. I can get it to exclude packages though with something like this: Jacoco Exclude Class Annotation

A list of class files to exclude from analysis. May use wildcardcharacters (* and ?). When not specified nothing will be excluded.
  • Type: java.util.List
  • Since: 0.6.1
  • Required: No
Jacoco

Jacoco Exclude Class Gradle

  • Type: boolean
  • Since: 0.6.1
  • Required: Yes
  • User Property: jacoco.haltOnFailure
  • Default: true
A list of class files to include into analysis. May use wildcardcharacters (* and ?). When not specified everything will beincluded.
  • Type: java.util.List
  • Since: 0.6.1
  • Required: No
Class

Jacoco Exclude Package

Check configuration used to specify rules on element types(BUNDLE, PACKAGE, CLASS, SOURCEFILE or METHOD) with a list oflimits. Each limit applies to a certain counter (INSTRUCTION, LINE,BRANCH, COMPLEXITY, METHOD, CLASS) and defines a minimum or maximumfor the corresponding value (TOTALCOUNT, COVEREDCOUNT, MISSEDCOUNT,COVEREDRATIO, MISSEDRATIO). If a limit refers to a ratio it must bein the range from 0.0 to 1.0 where the number of decimal placeswill also determine the precision in error messages. A limit ratiomay optionally be declared as a percentage where 0.80 and 80%represent the same value.

If not specified the following defaults are assumed:

  • rule element: BUNDLE
  • limit counter: INSTRUCTION
  • limit value: COVEREDRATIO

This example requires an overall instruction coverage of 80% andno class must be missed:

This example requires a line coverage minimum of 50% for everyclass except test classes:

  • Type: java.util.List
  • Since: 0.6.1
  • Required: Yes
Jacoco Exclude Class

Description:

I'm having trouble getting a jacoco/junit ant target to exclude classes from coverage. I can get it to exclude packages though with something like this: Jacoco Exclude Class Annotation

A list of class files to exclude from analysis. May use wildcardcharacters (* and ?). When not specified nothing will be excluded.
  • Type: java.util.List
  • Since: 0.6.1
  • Required: No

Jacoco Exclude Class Gradle

  • Type: boolean
  • Since: 0.6.1
  • Required: Yes
  • User Property: jacoco.haltOnFailure
  • Default: true
A list of class files to include into analysis. May use wildcardcharacters (* and ?). When not specified everything will beincluded.
  • Type: java.util.List
  • Since: 0.6.1
  • Required: No

Jacoco Exclude Package

Check configuration used to specify rules on element types(BUNDLE, PACKAGE, CLASS, SOURCEFILE or METHOD) with a list oflimits. Each limit applies to a certain counter (INSTRUCTION, LINE,BRANCH, COMPLEXITY, METHOD, CLASS) and defines a minimum or maximumfor the corresponding value (TOTALCOUNT, COVEREDCOUNT, MISSEDCOUNT,COVEREDRATIO, MISSEDRATIO). If a limit refers to a ratio it must bein the range from 0.0 to 1.0 where the number of decimal placeswill also determine the precision in error messages. A limit ratiomay optionally be declared as a percentage where 0.80 and 80%represent the same value.

If not specified the following defaults are assumed:

  • rule element: BUNDLE
  • limit counter: INSTRUCTION
  • limit value: COVEREDRATIO

This example requires an overall instruction coverage of 80% andno class must be missed:

This example requires a line coverage minimum of 50% for everyclass except test classes:

  • Type: java.util.List
  • Since: 0.6.1
  • Required: Yes
  • Type: boolean
  • Since: 0.6.1
  • Required: No
  • User Property: jacoco.skip
  • Default: false
> 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




broken image