We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d9a113 commit b2bd240Copy full SHA for b2bd240
scalac-scoverage-plugin/src/main/scala/scoverage/plugin.scala
@@ -84,6 +84,9 @@ class ScoverageInstrumentationComponent(val global: Global)
84
85
override def run(): Unit = {
86
println(s"[info] Cleaning datadir [${options.dataDir}]")
87
+ // we clean the data directory, because if the code has changed, then the number / order of
88
+ // statements has changed by definition. So the old data would reference statements incorrectly
89
+ // and thus skew the results.
90
IOUtils.clean(options.dataDir)
91
92
println("[info] Beginning coverage instrumentation")
0 commit comments