mirror of
https://github.com/sbt/sbt.git
synced 2026-09-07 02:55:23 +02:00
fix test-only behavior with no arguments
This commit is contained in:
+1
-1
@@ -273,7 +273,7 @@ object Defaults extends BuildCommon
|
||||
def selectedFilter(args: Seq[String]): String => Boolean =
|
||||
{
|
||||
val filters = args map GlobFilter.apply
|
||||
s => filters exists { _ accept s }
|
||||
s => filters.isEmpty || filters.exists { _ accept s }
|
||||
}
|
||||
def detectTests: Initialize[Task[Seq[TestDefinition]]] = (loadedTestFrameworks, compile, streams) map { (frameworkMap, analysis, s) =>
|
||||
Tests.discover(frameworkMap.values.toSeq, analysis, s.log)._1
|
||||
|
||||
Reference in New Issue
Block a user