I have a groovy project and run junit tests. I wanted to switch over to use test { useJUnitPlatform() }
(using gradle 4.7) but the problem I encounter is that jacocoTestReport does not work anymore, has no effect respectively.
I configure jacocoTestReport as shown in the example (https://docs.gradle.org/current/userguide/jacoco_plugin.html#example_configuring_test_task):
test {
useJUnitPlatform()
}
jacocoTestReport {
reports {
xml.enabled false
csv.enabled false
html.destination file("${buildDir}/jacocoHtml")
}
}
What do I need to do that junit and jacoco work together?