Skip to content

Commit aeb82a3

Browse files
committed
Move test categories to TestCategories
1 parent aef99eb commit aeb82a3

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

compiler/test/dotc/LegacyTests.scala

Lines changed: 0 additions & 4 deletions
This file was deleted.

compiler/test/dotc/tests.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package dotc
22

33
import dotty.Jars
4+
import dotty.LegacyTests
45
import dotty.tools.dotc.CompilerTest
56
import dotty.tools.StdLibSources
67
import org.junit.experimental.categories.Category
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package dotty
2+
3+
/** SlowTest category for JUnit */
4+
trait SlowTests
5+
6+
/** Legacy tests category for JUnit */
7+
trait LegacyTests

compiler/test/dotty/tools/dotc/SlowTests.scala

Lines changed: 0 additions & 4 deletions
This file was deleted.

project/Build.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,17 +468,17 @@ object Build {
468468

469469
test in Test := {
470470
// Exclude legacy tests by default
471-
(testOnly in Test).toTask(" -- --exclude-categories=dotc.LegacyTests,dotty.tools.dotc.SlowTests").value
471+
(testOnly in Test).toTask(" -- --exclude-categories=dotty.LegacyTests,dotty.SlowTests").value
472472
},
473473

474474
testAll in Test := {
475475
// Exclude legacy tests by default
476-
(testOnly in Test).toTask(" -- --exclude-categories=dotc.LegacyTests").value
476+
(testOnly in Test).toTask(" -- --exclude-categories=dotty.LegacyTests").value
477477
},
478478

479479
vulpix := Def.inputTaskDyn {
480480
val args: Seq[String] = spaceDelimited("<arg>").parsed
481-
val cmd = " dotty.tools.dotc.CompilationTests -- --exclude-categories=dotty.tools.dotc.SlowTests" + {
481+
val cmd = " dotty.tools.dotc.CompilationTests -- --exclude-categories=dotty.SlowTests" + {
482482
if (args.nonEmpty) " -Ddotty.tests.filter=" + args.mkString(" ")
483483
else ""
484484
}

0 commit comments

Comments
 (0)