Skip to content

Commit

Permalink
Add explanatory comment to jacoco setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rubengees committed Jun 7, 2021
1 parent 27b2f9a commit ac70daa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ tasks.withType(KotlinCompile).all {
}
}

// Generates a Gradle properties file with the jacoco javaagent as a jvmarg for Gradle runner tests.
// This allows to generate coverage for code run in the forked JVM.
task generateTestkitFiles {
def jacocoJar = configurations.jacocoAgent.asPath.toString()
def jacocoJar = configurations[JacocoPlugin.AGENT_CONFIGURATION_NAME].asPath.toString()

def jacocoAgentJar = new JacocoAgentJar(project.services.get(FileOperations)).tap {
agentConf = project.files(jacocoJar)
Expand Down

0 comments on commit ac70daa

Please sign in to comment.