fix test-only behavior with no arguments

This commit is contained in:
Mark Harrah 2011-05-31 18:37:07 -04:00
parent 4945190eca
commit 7733c57934
1 changed files with 1 additions and 1 deletions

View File

@ -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