Running jacocoReport

后端 未结 3 1305
慢半拍i
慢半拍i 2021-01-07 16:38

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

3条回答
  •  不思量自难忘°
    2021-01-07 17:04

    Add the following at a top level to your build.gradle:

    test {
     finalizedBy jacocoTestReport
    }
    

    This means that at the end of the test task the jacocoTestReport task should be run. You will receive your coverage analysis after run the tests.

提交回复
热议问题