diff options
author | vsalvis <salvisbergvera@gmail.com> | 2015-05-11 13:45:49 +0200 |
---|---|---|
committer | vsalvis <salvisbergvera@gmail.com> | 2015-05-12 11:19:34 +0200 |
commit | 7e3595d1f7efa34ef3ea2409529643cd8864e926 (patch) | |
tree | d75e9a0204a4110d9e9649ced9dd8e45c06202c3 /test | |
parent | ca3fc43bb3f9eb0068669acf6e64b3c6bd310511 (diff) | |
download | dotty-7e3595d1f7efa34ef3ea2409529643cd8864e926.tar.gz dotty-7e3595d1f7efa34ef3ea2409529643cd8864e926.tar.bz2 dotty-7e3595d1f7efa34ef3ea2409529643cd8864e926.zip |
Better documentation for partest dottyJar option
Diffstat (limited to 'test')
-rw-r--r-- | test/dotty/partest/DPConsoleRunner.scala | 4 | ||||
-rw-r--r-- | test/test/CompilerTest.scala | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/test/dotty/partest/DPConsoleRunner.scala b/test/dotty/partest/DPConsoleRunner.scala index c17bf7e8c..31b8467d3 100644 --- a/test/dotty/partest/DPConsoleRunner.scala +++ b/test/dotty/partest/DPConsoleRunner.scala @@ -14,11 +14,13 @@ import java.net.URLClassLoader /** Runs dotty partest from the Console, discovering test sources in * DPConfig.testRoot that have been generated automatically by - * DPPrepJUnitRunner. Use `sbt partest` to run. + * DPPrepJUnitRunner. Use `sbt partest` to run. If additional jars are + * required by some run tests, add them to partestDeps in the sbt Build.scala. */ object DPConsoleRunner { def main(args: Array[String]): Unit = { // unfortunately sbt runTask passes args as single string + // extra jars for run tests are passed with -dottyJars <count> <jar1> <jar2> ... val jarFinder = """-dottyJars (\d*) (.*)""".r val (jarList, otherArgs) = args.toList.partition(jarFinder.findFirstIn(_).isDefined) val extraJars = jarList match { diff --git a/test/test/CompilerTest.scala b/test/test/CompilerTest.scala index be88e8c8e..d710a26d8 100644 --- a/test/test/CompilerTest.scala +++ b/test/test/CompilerTest.scala @@ -31,7 +31,7 @@ import org.junit.Test * - run: compilation succeeds, partest: test run generates the output in * <test>.check. Run tests always need to be: * object Test { def main(args: Array[String]): Unit = ... } - * + * Classpath jars can be added to partestDeps in the sbt Build.scala. */ abstract class CompilerTest extends DottyTest { |