Created
January 23, 2020 15:02
-
-
Save th-deng/fcc6e9d913f362b0008b56eb5bc82fef to your computer and use it in GitHub Desktop.
Config JacocoTaskExtension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// groovy DSL | |
test { | |
jacoco { | |
destinationFile = file("$buildDir/jacoco/jacoco.exec") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// kotlin DSL | |
tasks.test { | |
extensions.configure(JacocoTaskExtension::class) { | |
destinationFile = file("$buildDir/jacoco/jacoco.exec") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment