Skip to content

Commit b2bd240

Browse files
committed
Added document as per request #67
1 parent 6d9a113 commit b2bd240

File tree

1 file changed

+3
-0
lines changed
  • scalac-scoverage-plugin/src/main/scala/scoverage

1 file changed

+3
-0
lines changed

scalac-scoverage-plugin/src/main/scala/scoverage/plugin.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ class ScoverageInstrumentationComponent(val global: Global)
8484

8585
override def run(): Unit = {
8686
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.
8790
IOUtils.clean(options.dataDir)
8891

8992
println("[info] Beginning coverage instrumentation")

0 commit comments

Comments
 (0)