mirror of https://github.com/sbt/sbt.git
fix issue #67
This commit is contained in:
parent
821f874409
commit
8e289a262a
|
|
@ -355,7 +355,8 @@ trait MultiTaskProject extends Project
|
|||
|
||||
task { tests =>
|
||||
|
||||
val (testNames, separator :: testArgs) = tests.toList.span(! _.startsWith("--"))
|
||||
val (testNames, separatorAndArgs) = tests.toList.span(! _.startsWith("--"))
|
||||
val testArgs = separatorAndArgs.drop(1)
|
||||
|
||||
def filterInclude =
|
||||
{
|
||||
|
|
@ -372,6 +373,7 @@ trait MultiTaskProject extends Project
|
|||
val includeTestsSet = Set(includeTests: _*)
|
||||
(test: String) => includeTestsSet.contains(test) || testFilters.exists(_.accept(test))
|
||||
}
|
||||
|
||||
val includeFunction =
|
||||
if(testNames.isEmpty)
|
||||
(test: String) => true
|
||||
|
|
|
|||
Loading…
Reference in New Issue