Skip to content

Commit ecbdddd

Browse files
authored
Fix CoverageFileName
fixes #135 This issue is making builds using the Gradle BuildCache to report 0% coverage. Gradle caches the .xml file that doesn't exist from the compile task and then the report task doesn't see anything, now it will cache the right file fixing the builds.
1 parent 2d52519 commit ecbdddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/org/scoverage/ScoveragePlugin.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class ScoveragePlugin implements Plugin<PluginAware> {
191191
}
192192
scalaCompileOptions.additionalParameters = parameters
193193
// the compile task creates a store of measured statements
194-
outputs.file(new File(extension.dataDir.get(), 'scoverage.coverage.xml'))
194+
outputs.file(new File(extension.dataDir.get(), 'scoverage.coverage'))
195195

196196
dependsOn project.configurations[CONFIGURATION_NAME]
197197
doFirst {

0 commit comments

Comments
 (0)