Defines a new SourceSet for the code to be instrumented. Defines a new Test Task which executes normal tests with the instrumented classes. Defines a new Check Task which enforces an overall line coverage requirement.
| Modifiers | Name | Description |
|---|---|---|
static class |
ScoverageExtension.CheckConfig |
| Modifiers | Name | Description |
|---|---|---|
static CoverageType |
DEFAULT_COVERAGE_TYPE |
|
static double |
DEFAULT_MINIMUM_RATE |
| Type | Name and description |
|---|---|
java.util.List<CheckConfig> |
checks |
org.gradle.api.provider.Property<java.lang.Boolean> |
coverageDebug |
org.gradle.api.provider.Property<java.lang.Boolean> |
coverageOutputCoberturaOptions for enabling and disabling output |
org.gradle.api.provider.Property<java.lang.Boolean> |
coverageOutputHTML |
org.gradle.api.provider.Property<java.lang.Boolean> |
coverageOutputXML |
org.gradle.api.provider.Property<CoverageType> |
coverageType |
org.gradle.api.provider.Property<java.io.File> |
dataDira directory to write working files to |
org.gradle.api.provider.Property<java.lang.Boolean> |
deleteReportsOnAggregation |
org.gradle.api.provider.ListProperty<java.lang.String> |
excludedFilesregex for each excluded file |
org.gradle.api.provider.ListProperty<java.lang.String> |
excludedPackagesregex for each excluded package |
org.gradle.api.provider.Property<java.lang.Boolean> |
highlightingrange positioning for highlighting |
org.gradle.api.provider.Property<BigDecimal> |
minimumRate |
org.gradle.api.Project |
project |
org.gradle.api.provider.Property<java.io.File> |
reportDira directory to write final output to |
org.gradle.api.provider.Property<java.lang.String> |
scoverageScalaVersionVersion of scala to use for the scalac plugin |
org.gradle.api.provider.Property<java.lang.String> |
scoverageVersionVersion of scoverage to use for the scalac plugin |
org.gradle.api.provider.Property<java.io.File> |
sourcessources to highlight |
| Constructor and description |
|---|
ScoverageExtension
(org.gradle.api.Project project) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
check(groovy.lang.Closure closure) |
| 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() |
Options for enabling and disabling output
a directory to write working files to
regex for each excluded file
regex for each excluded package
range positioning for highlighting
a directory to write final output to
Version of scala to use for the scalac plugin
Version of scoverage to use for the scalac plugin
sources to highlight
Groovy Documentation