Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Properly filter test results and decode test names in printed output.

Initial report by @viktorklang, based on his patch.
  • Loading branch information...
commit 3e7bedd11bfafaaa0911c4e0ab65fd3417effdcf 1 parent f430502
@harrah harrah authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 main/actions/src/main/scala/sbt/Tests.scala
View
6 main/actions/src/main/scala/sbt/Tests.scala
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.