Skip to content

Commit d054196

Browse files
committed
capture the measured statements file as an output of the compilation step
1 parent ae016e7 commit d054196

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/groovy/org/scoverage/ScoverageExtension.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ class ScoverageExtension {
119119
scalaCompileOptions.additionalParameters = parameters.collect { escape(it) }
120120
// exclude the scala libraries that are added to enable scala version detection
121121
classpath += pluginDependencies
122+
// the compile task creates a store of measured statements
123+
outputs.file(new File(extension.dataDir, 'scoverage.coverage.xml'))
122124
}
123125

124126
t.tasks[ScoveragePlugin.TEST_NAME].configure {

0 commit comments

Comments
 (0)