Skip to content

Instantly share code, notes, and snippets.

@th-deng
Created Jan 23, 2020
Embed
What would you like to do?
Default JacocoTaskExtension settings
// groovy DSL
test {
jacoco {
enabled = true
destinationFile = file("$buildDir/jacoco/${name}.exec")
includes = []
excludes = []
excludeClassLoaders = []
includeNoLocationClasses = false
sessionId = "<auto-generated value>"
dumpOnExit = true
classDumpDir = null
output = JacocoTaskExtension.Output.FILE
address = "localhost"
port = 6300
jmx = false
}
}
// kotlin DSL
tasks.getByName<Test>("test") {
extensions.configure(JacocoTaskExtension::class) {
isEnabled = true
destinationFile = file("$buildDir/jacoco/$name.exec")
includes = listOf()
excludes = listOf()
excludeClassLoaders = listOf()
isIncludeNoLocationClasses = false
sessionId = "<auto-generated value>"
isDumpOnExit = true
classDumpDir = null
output = JacocoTaskExtension.Output.FILE
address = "localhost"
port = 6300
isJmx = false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment