Skip to content

Commit e99c114

Browse files
committed
Change test output to directory inside target
Files compiled by `ScoverageCompiler` during tests were put into '.', polluting root directory with a lot of `.class` files. `clean` does not remove them as they are not in `target`. I moved them to `scalac-scoverage-plugin/target/scala-$ShortScalaVersion/test-generated-classes`.
1 parent fe41e19 commit e99c114

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scalac-scoverage-plugin/src/test/scala/scoverage/ScoverageCompiler.scala

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ object ScoverageCompiler {
2222
s.Yrangepos.value = true
2323
s.Yposdebug.value = true
2424
s.classpath.value = classPath.mkString(File.pathSeparator)
25+
26+
val path = s"./scalac-scoverage-plugin/target/scala-$ShortScalaVersion/test-generated-classes"
27+
new File(path).mkdirs()
28+
s.d.value = path
2529
s
2630
}
2731

0 commit comments

Comments
 (0)