사용자 도구

사이트 도구


gradle:jacoco

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
마지막 판 양쪽 다음 판
gradle:jacoco [2015/11/20 12:32]
kwon37xi [설정 예]
gradle:jacoco [2018/03/28 13:29]
kwon37xi [jacocoReport]
줄 22: 줄 22:
   * [[gradle:sonarqube|Gradle SonarQube]] 사용시 SonarQube 처리 디렉토리 아래로 ''destinationFile''을 지정하면 안된다. 테스트 후 파일이 삭제돼 버려서 결과가 SonrQube로 전송이 안됨.   * [[gradle:sonarqube|Gradle SonarQube]] 사용시 SonarQube 처리 디렉토리 아래로 ''destinationFile''을 지정하면 안된다. 테스트 후 파일이 삭제돼 버려서 결과가 SonrQube로 전송이 안됨.
 ===== jacocoReport ===== ===== jacocoReport =====
 +<code>
 +jacocoTestReport {
 +    reports {
 +        xml.enabled false
 +        csv.enabled false
 +        html.destination file("${buildDir}/jacocoHtml")
 +    }
 +}
 +</code>
 +
 <code sh> <code sh>
 ./gradlew clean test jacocoTestReport ./gradlew clean test jacocoTestReport
 </code> </code>
 ''${buildDir}/reports/jacoco/test/html/index.html''을 브라우저로 열어서 코드 커버리지 상태를 살펴볼 수 있다. ''${buildDir}/reports/jacoco/test/html/index.html''을 브라우저로 열어서 코드 커버리지 상태를 살펴볼 수 있다.
gradle/jacoco.txt · 마지막으로 수정됨: 2018/11/07 12:41 저자 kwon37xi