Provides configuration options for the JacocoCoveragePlugin, in particular the fileThreshold, classThreshold, packageThreshold, reportThreshold keywords for specifying coverage requirements.
| Modifiers | Name | Description |
|---|---|---|
com.google.common.collect.Multimap<CoverageRealm, groovy.lang.Closure<java.lang.Double>> |
coverage |
| Type | Name and description |
|---|---|
java.lang.Object |
BRANCH |
java.lang.Object |
CLASS |
java.lang.Object |
COMPLEXITY |
java.lang.Object |
INSTRUCTION |
java.lang.Object |
LINE |
java.lang.Object |
METHOD |
| Constructor and description |
|---|
JacocoCoverageExtension
() |
| Type | Name and description |
|---|---|
java.lang.Object |
threshold(CoverageRealm realm, double value)Adds a minimum coverage threshold for all scopes and coverage types in the given realm. |
java.lang.Object |
threshold(CoverageRealm realm, double value, CoverageType coverageType)Adds a minimum coverage threshold for the given coverage type and for all scopes in the given realm. |
java.lang.Object |
threshold(CoverageRealm realm, double value, java.lang.String scope)Adds a minimum coverage threshold for all coverage types and the given scope name in the given realm. |
java.lang.Object |
threshold(CoverageRealm realm, double value, CoverageType coverageType, java.lang.String scope)Adds a minimum coverage threshold for the given coverage type and scope name (exact match) in the given realm. |
java.lang.Object |
threshold(CoverageRealm realm, double value, java.util.regex.Pattern scopePattern)Adds a minimum coverage threshold for all coverage types and scopes (in the given realm) matching the given pattern. |
java.lang.Object |
threshold(CoverageRealm realm, double value, CoverageType coverageType, java.util.regex.Pattern scopePattern)Adds a minimum coverage threshold for the given coverage type and scopes matching the given pattern. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Adds a minimum coverage threshold for all scopes and coverage types in the given realm.
realm - The realm that this threshold applies to.value - The minimum required threshold, a number in [0,1].Adds a minimum coverage threshold for the given coverage type and for all scopes in the given realm.
realm - The realm that this threshold applies to.value - The minimum required threshold, a number in [0,1].coverageType - The type of JaCoCo coverage this threshold applies to.Adds a minimum coverage threshold for all coverage types and the given scope name in the given realm.
realm - The realm that this threshold applies to.value - The minimum required threshold, a number in [0,1].coverageType - The type of JaCoCo coverage this rule applies to.scope - The scope (e.g., file name, class name, package name, report name) that this threshold applies to.Adds a minimum coverage threshold for the given coverage type and scope name (exact match) in the given realm.
realm - The realm that this threshold applies to.value - The minimum required threshold, a number in [0,1].coverageType - The type of JaCoCo coverage this rule applies to.scope - The scope name that this threshold applies to.Adds a minimum coverage threshold for all coverage types and scopes (in the given realm) matching the given pattern.
realm - The realm that this threshold applies to.value - The minimum required threshold, a number in [0,1].coverageType - The type of JaCoCo coverage this rule applies to.scopePattern - A regular expression specifying the names of the scopes that this threshold applies to.Adds a minimum coverage threshold for the given coverage type and scopes matching the given pattern.
realm - The realm that this threshold applies to.value - The minimum required threshold, a number in [0,1].coverageType - The type of JaCoCo coverage this rule applies to.scopePattern - A regular expression specifying the names of the scopes that this threshold applies to.Groovy Documentation