mirror of https://github.com/sbt/sbt.git
Properly filter test results and decode test names in printed output.
Initial report by @viktorklang, based on his patch.
This commit is contained in:
parent
f4305023a7
commit
3e7bedd11b
|
|
@ -253,8 +253,12 @@ object Tests
|
|||
log.info(noTestsMessage)
|
||||
else {
|
||||
import TestResult.{Error, Failed, Passed}
|
||||
import scala.reflect.NameTransformer.decode
|
||||
|
||||
def select(Tpe: TestResult.Value) = results.events collect { case (name, Tpe) => name }
|
||||
def select(resultTpe: TestResult.Value) = results.events collect {
|
||||
case (name, tpe) if tpe.result == resultTpe =>
|
||||
decode(name)
|
||||
}
|
||||
|
||||
val failures = select(Failed)
|
||||
val errors = select(Error)
|
||||
|
|
|
|||
Loading…
Reference in New Issue