jacoco:instrument

Full name:

org.jacoco:jacoco-maven-plugin:0.8.6-SNAPSHOT:instrument

Description:

Performs offline instrumentation. Note that after execution of test you must restore original classes with help of "restore-instrumented-classes" goal.

Warning: The preferred way for code coverage analysis with JaCoCo is on-the-fly instrumentation. Offline instrumentation has several drawbacks and should only be used if a specific scenario explicitly requires this mode. Please consult documentation about offline instrumentation before using this mode.

Attributes:

Optional Parameters

Name Type Since Description
<excludes> List 0.6.2 A list of class files to exclude from instrumentation. May use wildcard characters (* and ?). When not specified nothing will be excluded. Except for performance optimization or technical corner cases this option is normally not required. If you want to exclude classes from the report please configure the report goal accordingly.
<includes> List 0.6.2 A list of class files to include in instrumentation. May use wildcard characters (* and ?). When not specified everything will be included.
<skip> boolean 0.6.2 Flag used to suppress execution.
Default value is: false.
User property is: jacoco.skip.

Parameter Details

<excludes>
A list of class files to exclude from instrumentation. May use wildcard characters (* and ?). When not specified nothing will be excluded. Except for performance optimization or technical corner cases this option is normally not required. If you want to exclude classes from the report please configure the report goal accordingly.
<includes>
A list of class files to include in instrumentation. May use wildcard characters (* and ?). When not specified everything will be included.
<skip>
Flag used to suppress execution.