jacoco:instrument
Full name :
org.jacoco:jacoco-maven-plugin:0.8.13-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 :
- 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. 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.
-
Type
:
java.util.List
-
Since
:
0.6.2
-
Required
:
No
A list of class files to include in instrumentation. May use
wildcard characters (* and ?). When not specified everything will
be included.
-
Type
:
java.util.List
-
Since
:
0.6.2
-
Required
:
No
Flag used to suppress execution.
-
Type
:
boolean
-
Since
:
0.6.2
-
Required
:
No
-
User Property
:
jacoco.skip
-
Default
:
false