Skip to content

Commit

Permalink
Fix CoverageFileName
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
CristianGM authored Nov 17, 2020
1 parent 2d52519 commit ecbdddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/groovy/org/scoverage/ScoveragePlugin.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class ScoveragePlugin implements Plugin<PluginAware> {
}
scalaCompileOptions.additionalParameters = parameters
// the compile task creates a store of measured statements
outputs.file(new File(extension.dataDir.get(), 'scoverage.coverage.xml'))
outputs.file(new File(extension.dataDir.get(), 'scoverage.coverage'))

dependsOn project.configurations[CONFIGURATION_NAME]
doFirst {
Expand Down

0 comments on commit ecbdddd

Please sign in to comment.