@@ -138,9 +138,6 @@ object Build {
138
138
// Run tests with filter through vulpix test suite
139
139
val testCompilation = inputKey[Unit ](" runs integration test with the supplied filter" )
140
140
141
- // Run code coverage instrumentation tests
142
- val testCoverage = inputKey[Unit ](" runs code coverage instrumentation test" )
143
-
144
141
// Used to compile files similar to ./bin/scalac script
145
142
val scalac = inputKey[Unit ](" run the compiler using the correct classpath, or the user supplied classpath" )
146
143
@@ -586,7 +583,8 @@ object Build {
586
583
s """
587
584
|usage: testCompilation [--help] [--from-tasty] [--update-checkfiles] [<filter>]
588
585
|
589
- |By default runs tests in dotty.tools.dotc.*CompilationTests excluding tests tagged with dotty.SlowTests.
586
+ |By default runs tests in dotty.tools.dotc.*CompilationTests and dotty.tools.dotc.coverage.*,
587
+ |excluding tests tagged with dotty.SlowTests.
590
588
|
591
589
| --help show this message
592
590
| --from-tasty runs tests in dotty.tools.dotc.FromTastyTests
@@ -601,30 +599,14 @@ object Build {
601
599
val updateCheckfile = args.contains(" --update-checkfiles" )
602
600
val fromTasty = args.contains(" --from-tasty" )
603
601
val args1 = if (updateCheckfile | fromTasty) args.filter(x => x != " --update-checkfiles" && x != " --from-tasty" ) else args
604
- val test = if (fromTasty) " dotty.tools.dotc.FromTastyTests" else " dotty.tools.dotc.*CompilationTests"
602
+ val test = if (fromTasty) " dotty.tools.dotc.FromTastyTests" else " dotty.tools.dotc.*CompilationTests dotty.tools.dotc.coverage.* "
605
603
val cmd = s " $test -- --exclude-categories=dotty.SlowTests " +
606
604
(if (updateCheckfile) " -Ddotty.tests.updateCheckfiles=TRUE" else " " ) +
607
605
(if (args1.nonEmpty) " -Ddotty.tests.filter=" + args1.mkString(" " ) else " " )
608
606
(Test / testOnly).toTask(cmd)
609
607
}
610
608
}.evaluated,
611
609
612
- testCoverage := Def .inputTaskDyn {
613
- val args = spaceDelimited(" <arg>" ).parsed
614
- if (args.contains(" --help" )) {
615
- println(" usage: testCoverage [--update-checkfiles] [<args>]" )
616
- (Test / testOnly).toTask(" not.a.test" )
617
- } else {
618
- val updateCheckfile = args.contains(" --update-checkfiles" )
619
- val otherArgs = args.filter(_ != " --update-checkfiles" )
620
- val test = " dotty.tools.dotc.coverage.CoverageTests"
621
- val argUpdateCheckfile = if (updateCheckfile) " -Ddotty.tests.updateCheckfiles=TRUE" else " "
622
- val argCustom = if (otherArgs.nonEmpty) otherArgs.mkString(" " ) else " "
623
- val cmd = s " $test -- $argUpdateCheckfile $argCustom"
624
- (Test / testOnly).toTask(cmd)
625
- }
626
- }.evaluated,
627
-
628
610
Compile / mainClass := Some (" dotty.tools.dotc.Main" ),
629
611
630
612
scala := {
0 commit comments