@@ -226,7 +226,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
226226 rerun.exists(dir.getPath.contains)
227227 })
228228
229- private trait CompilationLogic { this : Test =>
229+ protected trait CompilationLogic { this : Test =>
230230 def suppressErrors = false
231231
232232 /**
@@ -359,7 +359,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
359359 /** Each `Test` takes the `testSources` and performs the compilation and assertions
360360 * according to the implementing class "neg", "run" or "pos".
361361 */
362- private class Test (testSources : List [TestSource ], times : Int , threadLimit : Option [Int ], suppressAllOutput : Boolean )(implicit val summaryReport : SummaryReporting ) extends CompilationLogic { test =>
362+ protected class Test (testSources : List [TestSource ], times : Int , threadLimit : Option [Int ], suppressAllOutput : Boolean )(implicit val summaryReport : SummaryReporting ) extends CompilationLogic { test =>
363363
364364 import summaryReport ._
365365
@@ -903,15 +903,15 @@ trait ParallelTesting extends RunnerOrchestration { self =>
903903 verifyOutput(testSource, reporters, logger)
904904 }
905905
906- private final class RunTest (testSources : List [TestSource ], times : Int , threadLimit : Option [Int ], suppressAllOutput : Boolean )(implicit summaryReport : SummaryReporting )
906+ protected class RunTest (testSources : List [TestSource ], times : Int , threadLimit : Option [Int ], suppressAllOutput : Boolean )(implicit summaryReport : SummaryReporting )
907907 extends Test (testSources, times, threadLimit, suppressAllOutput) {
908908 private var didAddNoRunWarning = false
909- private def addNoRunWarning () = if (! didAddNoRunWarning) {
909+ protected def addNoRunWarning () = if (! didAddNoRunWarning) {
910910 didAddNoRunWarning = true
911911 summaryReport.addStartingMessage {
912912 """ |WARNING
913913 |-------
914- |Run tests were only compiled, not run - this is due to the `dotty.tests.norun`
914+ |Run and debug tests were only compiled, not run - this is due to the `dotty.tests.norun`
915915 |property being set
916916 |""" .stripMargin
917917 }
@@ -1162,12 +1162,12 @@ trait ParallelTesting extends RunnerOrchestration { self =>
11621162 * `aggregateTests` in the companion, which will ensure that aggregation is allowed.
11631163 */
11641164 final class CompilationTest private (
1165- private [ ParallelTesting ] val targets : List [TestSource ],
1166- private [ ParallelTesting ] val times : Int ,
1167- private [ ParallelTesting ] val shouldDelete : Boolean ,
1168- private [ ParallelTesting ] val threadLimit : Option [Int ],
1169- private [ ParallelTesting ] val shouldFail : Boolean ,
1170- private [ ParallelTesting ] val shouldSuppressOutput : Boolean
1165+ val targets : List [TestSource ],
1166+ val times : Int ,
1167+ val shouldDelete : Boolean ,
1168+ val threadLimit : Option [Int ],
1169+ val shouldFail : Boolean ,
1170+ val shouldSuppressOutput : Boolean
11711171 ) {
11721172 import org .junit .Assert .fail
11731173
@@ -1270,7 +1270,7 @@ trait ParallelTesting extends RunnerOrchestration { self =>
12701270 checkFail(test, " Rewrite" )
12711271 }
12721272
1273- private def checkPass (test : Test , desc : String ): this .type =
1273+ def checkPass (test : Test , desc : String ): this .type =
12741274 test.executeTestSuite()
12751275
12761276 cleanup()
0 commit comments