How to generate JaCoCo report - Jomsaruj/coffeemaker GitHub Wiki
For those who not have gradle install in your computer. Please do so
Installing Gradle
Installing with a package manager
SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix-like systems (macOS, Linux, Cygwin, Solaris and FreeBSD).
sdk install gradle
Homebrew is "the missing package manager for macOS".
brew install gradle
Build test
It is necessary to run all test file before generate coverage test report. Here is how to build CoffeeMakerTest.java and RecipeTest.java in one command
gradle test
Generate test report
After build all test file, you are now be able to generate JaCoCo test report.
gradle jacocoTestReport
you can now see the coverage report at index.html in build directory