jacoco:instrument
Full name:
org.jacoco:jacoco-maven-plugin:0.7.4.201502262128: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:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Since version:
0.6.2. - Binds by default to the lifecycle phase:
process-classes.
Optional Parameters
| Name | Type | Since | Description |
| excludes |
List
|
0.6.2
|
A list of class files to exclude from
instrumentation/analysis/reports. May use wildcard characters (*
and ?). When not specified nothing will be excluded. |
| includes |
List
|
0.6.2
|
A list of class files to include in
instrumentation/analysis/reports. 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
A list of class files to exclude from
instrumentation/analysis/reports. May use wildcard characters (*
and ?). When not specified nothing will be excluded.
-
Type:
java.util.List -
Since:
0.6.2 -
Required:
No
A list of class files to include in
instrumentation/analysis/reports. May use wildcard characters (*
and ?). When not specified everything will be included.
-
Type:
java.util.List -
Since:
0.6.2 -
Required:
No
skip:
Flag used to suppress execution.
-
Type:
boolean -
Since:
0.6.2 -
Required:
No -
User Property:
jacoco.skip -
Default:
false