mirror of
https://github.com/sbt/sbt.git
synced 2026-09-03 08:34:34 +02:00
Fix #3746: Scripted should fail when no tests match the pattern
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user