diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-04-12 16:04:54 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-04-12 16:05:24 +0200 |
commit | 8753f0b46d8f7b63fb1640a45bc280624cf495f4 (patch) | |
tree | 460209faccce36dae358f39a0d5d20ee6019ce84 | |
parent | 9b398b6a6eaf3cfca2753abdb811b426021156f2 (diff) | |
download | dotty-8753f0b46d8f7b63fb1640a45bc280624cf495f4.tar.gz dotty-8753f0b46d8f7b63fb1640a45bc280624cf495f4.tar.bz2 dotty-8753f0b46d8f7b63fb1640a45bc280624cf495f4.zip |
Replace test alias by test command
Aliases are evil and usually don't do what you want.
-rw-r--r-- | project/Build.scala | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/project/Build.scala b/project/Build.scala index 04e75de4c..8b1c0e31e 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -135,7 +135,6 @@ object Build { triggeredMessage in ThisBuild := Watched.clearWhenTriggered, addCommandAlias("run", "dotty-compiler/run") ++ - addCommandAlias("test", "testOnly -- --exclude-categories=java.lang.Exception") ++ addCommandAlias("legacyTests", "dotty-compiler/testOnly dotc.tests") ). settings(publishing) @@ -144,8 +143,7 @@ object Build { lazy val `dotty-bootstrapped` = project. aggregate(`dotty-library-bootstrapped`, `dotty-compiler-bootstrapped`). settings( - publishArtifact := false, - addCommandAlias("test", "testOnly -- --exclude-categories=java.lang.Exception") + publishArtifact := false ) lazy val `dotty-interfaces` = project.in(file("interfaces")). @@ -286,6 +284,11 @@ object Build { ) }.evaluated, + test in Test := { + // Exclude legacy tests by default + (testOnly in Test).toTask(" -- --exclude-categories=java.lang.Exception").value + }, + vulpix := Def.inputTaskDyn { val args: Seq[String] = spaceDelimited("<arg>").parsed val cmd = " dotty.tools.dotc.CompilationTests" + { |