This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.scalatest._ | |
| sealed trait Repeated extends TestSuiteMixin { this: TestSuite => | |
| protected abstract override def runTest(testName: String, args: Args): Status = { | |
| def run0(times: Int): Status = { | |
| val status = super.runTest(testName, args) | |
| if (times <= 1) status else status.thenRun(run0(times - 1)) | |
| } | |
| run0(args.configMap.getWithDefault("times", "1").toInt) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.