This is a quick one. A few days ago I posted how you can configure JaCoCo and Coveralls to work in tandem. However there's a problem with the setup shown in that post, basically coveralls will fail to find the aggregated report file because it's place in a non-standard location #sadpanda
But there's a way to fix it. First we must instruct the jacocoRootReport
task to generate an XML report at the expected location. Secondly we must tell coveralls
where it can find all the source files, because it will attempt to load source files from the root project (which is empty). The fixed build file is here
I supposed we could also configure the report location in the coveralls
configuration as there is a property named jacocoReportPath
as appreciated at https://github.com/kt3k/coveralls-gradle-plugin/blob/master/src/main/groovy/org/kt3k/gradle/plugin/CoverallsPluginExtension.groovy.
Keep on Groovying!