문서의 이전 판입니다!
apply plugin: 'jacoco' jacoco { toolVersion = "0.7.5.201505241946" } test { jacoco { enabled = true destinationFile = file("${buildDir}/jacoco/jacoco.exec") // 기본은 ${buildDir}/jacoco/test.exec } }
./gradlew clean test jacocoTestReport
${buildDir}/reports/jacoco/test/html/index.html
을 브라우저로 열어서 코드 커버리지 상태를 살펴볼 수 있다.