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 d9f7966 commit e6c7b42Copy full SHA for e6c7b42
compilation/src/test/scala/scala/tools/benchmark/BenchmarkTest.scala
@@ -1,9 +1,15 @@
1
package scala.tools.benchmark
2
3
-import scala.tools.nsc.ScalacBenchmarkStandalone
+import scala.tools.nsc.ScalacBenchmark
4
import org.junit.Test
5
6
class BenchmarkTest {
7
- @Test def compilesOK =
8
- ScalacBenchmarkStandalone.main(Array("../corpus/vector", "1"))
+ @Test def compilesOK() = {
+ val bench = new ScalacBenchmark
9
+ bench.source = "../corpus/vector"
10
+ bench.corpusVersion = "latest"
11
+ bench.initTemp()
12
+ bench.compileImpl()
13
+ bench.clearTemp()
14
+ }
15
}
0 commit comments