Skip to content
Advertisement

Running jacocoReport

I’m using Gradle 1.7 and Jacoco plugin. My project uses Java and Scala plugins.
When I run gradlew -i clean jacocoTestReport

Report is not created and I see in the log

:bl:jacocoTestReport (Thread[Daemon Thread 13,5,main] - start
:bl:jacocoTestReport
Skipping task ':bl:jacocoTestReport' as task onlyIf is false.
:bl:jacocoTestReport SKIPPED
:bl:jacocoTestReport (Thread[Daemon Thread 13,5,main]) - complete

What does it mean? Why report is not created?

Advertisement

Answer

The task will only run if coverage data is available. You can make sure of that by also running the test task.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement