Fix #3746: Scripted should fail when no tests match the pattern

This commit is contained in:
gayanMatch
2026-01-09 13:57:58 -06:00
parent 061145e67b
commit 65af6c59d6
3 changed files with 8 additions and 1 deletions
@@ -33,6 +33,9 @@ object ScriptedRunnerImpl {
case ScriptedTest(group, name) =>
runner.scriptedTest(group, name, logger, context)
}
if (tests.nonEmpty && allTests.isEmpty) {
sys.error(s"No tests found matching: ${tests.mkString(", ")}")
}
runAll(allTests)
}
def runAll(tests: Seq[() => Option[String]]): Unit = {