- Test-Driven Java Development(Second Edition)
- Alex Garcia Viktor Farcic
- 113字
- 2021-06-24 18:31:48
JaCoCo
Java Code Coverage (JaCoCo) is a well-known tool for measuring test coverage.
To use it in our project, we need to add a few lines to our Gradle configuration file, that is, build.gradle:
- Add the Gradle plugin for JaCoCo:
apply plugin: 'jacoco'
- To see the JaCoCo results, run the following from your command prompt:
gradle test jacocoTestReport
- The same Gradle tasks can be run from the Gradle Tasks IDEA Tool Window.
- The end result is stored in the build/reports/jacoco/test/html directory. It's an HTML file that can be opened in any browser:

Further chapters of this book will explore code coverage in more detail. Until then, go to http://www.eclemma.org/jacoco/ for more information.
推薦閱讀
- 手機(jī)安全和可信應(yīng)用開發(fā)指南:TrustZone與OP-TEE技術(shù)詳解
- The DevOps 2.3 Toolkit
- OpenShift開發(fā)指南(原書第2版)
- Developing Mobile Web ArcGIS Applications
- C++ Builder 6.0下OpenGL編程技術(shù)
- Java游戲服務(wù)器架構(gòu)實(shí)戰(zhàn)
- 面向STEM的Scratch創(chuàng)新課程
- SEO智慧
- Python:Master the Art of Design Patterns
- Teaching with Google Classroom
- 微服務(wù)架構(gòu)深度解析:原理、實(shí)踐與進(jìn)階
- HTML 5與CSS 3權(quán)威指南(第3版·上冊(cè))
- C#程序設(shè)計(jì)(項(xiàng)目教學(xué)版)
- Instant Debian:Build a Web Server
- Python從入門到精通(第3版)