val jacocoReportLocations = fileTree("/build/jacoco") { include("*.exec") }
jacocoReportLocations.files.forEach {
println(it)
}
val jacocoTestReport by getting(JacocoReport::class) {
executionData(jacocoReportLocations)
reports {
xml.isEnabled = true
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.map {
fileTree(it) {
exclude(coverageExclusions)
}
}))
}
}
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/8da52cc5-d650-4bf9-b392-27c0c8e50d9d%40googlegroups.com.
val jacocoReportLocations = fileTree("/build/jacoco") { include("*.exec") }
val jacocoTestReport by getting(JacocoReport::class) {
executionData(jacocoReportLocations)
reports {
xml.isEnabled = true
}
afterEvaluate {
classDirectories.setFrom(files(classDirectories.files.map {
fileTree(it) {
exclude(coverageExclusions)
}
}))
}
}
val jacocoTestCoverageVerification by getting(JacocoCoverageVerification::class) {
executionData(jacocoReportLocations)
mustRunAfter("jacocoTestReport")
violationRules {
rule {
limit {
counter = "LINE"
minimum = "0.90".toBigDecimal()
You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/gmFf8Q1YWL8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/02056E8B-3887-4E1D-8171-9279435CCC07%40mountainminds.com.
Wild guessing without knowing your exact setup: Maybe separation of modules eliminated "cross coverage". I.e. a.test only counts for a not for b.
To debug this you can:
* drill down both coverage reports and search for specific discrepancies
* Use our command line tool to inspect and diff the content of the exec files (execinfo, https://www.jacoco.org/jacoco/trunk/doc/cli.html)
Regards,
-marc
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/CANmyrU3MQVKv01siHMbaVMhpRzaOUQMf3ZCg_je0VfL-40JX8A%40mail.gmail.com.