Skip to content

Commit 8753f0b

Browse files
committed
Replace test alias by test command
Aliases are evil and usually don't do what you want.
1 parent 9b398b6 commit 8753f0b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

project/Build.scala

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ object Build {
135135
triggeredMessage in ThisBuild := Watched.clearWhenTriggered,
136136

137137
addCommandAlias("run", "dotty-compiler/run") ++
138-
addCommandAlias("test", "testOnly -- --exclude-categories=java.lang.Exception") ++
139138
addCommandAlias("legacyTests", "dotty-compiler/testOnly dotc.tests")
140139
).
141140
settings(publishing)
@@ -144,8 +143,7 @@ object Build {
144143
lazy val `dotty-bootstrapped` = project.
145144
aggregate(`dotty-library-bootstrapped`, `dotty-compiler-bootstrapped`).
146145
settings(
147-
publishArtifact := false,
148-
addCommandAlias("test", "testOnly -- --exclude-categories=java.lang.Exception")
146+
publishArtifact := false
149147
)
150148

151149
lazy val `dotty-interfaces` = project.in(file("interfaces")).
@@ -286,6 +284,11 @@ object Build {
286284
)
287285
}.evaluated,
288286

287+
test in Test := {
288+
// Exclude legacy tests by default
289+
(testOnly in Test).toTask(" -- --exclude-categories=java.lang.Exception").value
290+
},
291+
289292
vulpix := Def.inputTaskDyn {
290293
val args: Seq[String] = spaceDelimited("<arg>").parsed
291294
val cmd = " dotty.tools.dotc.CompilationTests" + {

0 commit comments

Comments
 (0)