@@ -138,9 +138,6 @@ object Build {
138138 // Run tests with filter through vulpix test suite
139139 val testCompilation = inputKey[Unit ](" runs integration test with the supplied filter" )
140140
141- // Run code coverage instrumentation tests
142- val testCoverage = inputKey[Unit ](" runs code coverage instrumentation test" )
143-
144141 // Used to compile files similar to ./bin/scalac script
145142 val scalac = inputKey[Unit ](" run the compiler using the correct classpath, or the user supplied classpath" )
146143
@@ -586,7 +583,8 @@ object Build {
586583 s """
587584 |usage: testCompilation [--help] [--from-tasty] [--update-checkfiles] [<filter>]
588585 |
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.
590588 |
591589 | --help show this message
592590 | --from-tasty runs tests in dotty.tools.dotc.FromTastyTests
@@ -601,30 +599,14 @@ object Build {
601599 val updateCheckfile = args.contains(" --update-checkfiles" )
602600 val fromTasty = args.contains(" --from-tasty" )
603601 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.* "
605603 val cmd = s " $test -- --exclude-categories=dotty.SlowTests " +
606604 (if (updateCheckfile) " -Ddotty.tests.updateCheckfiles=TRUE" else " " ) +
607605 (if (args1.nonEmpty) " -Ddotty.tests.filter=" + args1.mkString(" " ) else " " )
608606 (Test / testOnly).toTask(cmd)
609607 }
610608 }.evaluated,
611609
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-
628610 Compile / mainClass := Some (" dotty.tools.dotc.Main" ),
629611
630612 scala := {
0 commit comments