id("jacoco")
First Method:- Run following command
gradle clean build
./gradlew jacocoTestReport
mm Second Method:- Add following code in build.gradle.kts
tasks.test {
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run
}
tasks.jacocoTestReport {
dependsOn(tasks.test) // tests are required to run before generating the report
}
Now, run cmd "gradle clean build", it will also generate jacocoreports
wdw
jacocoReports are generated under build folder -> reports -> jacoco -> html -> index.html
docker run -d --name some-redis -p 6379:6379 redis
docker exec -it some-redis
redis-cli
test