Expose TestResult

This commit is contained in:
Eugene Yokota 2017-04-04 05:22:23 -04:00
parent 596dc62d7e
commit 2a1d8fb9e7
3 changed files with 6 additions and 1 deletions

View File

@ -14,4 +14,5 @@ Migration notes
- Log options `-error`, `-warn`, `-info`, `-debug` are added as shorthand for `"early(error)"` etc.
- `sbt.Process` and `sbt.ProcessExtra` are gone. Use `scala.sys.process` instead.
- `incOptions.value.withNameHashing(...)` option is removed.
- `TestResult.Value` is now `TestResult`.
- the scripted plugin is cross-versioned now, so you must use %% when depending on it

View File

@ -8,6 +8,10 @@ trait Import {
type URI = java.net.URI
type URL = java.net.URL
// sbt.testing
type TestResult = sbt.protocol.testing.TestResult
val TestResult = sbt.protocol.testing.TestResult
// sbt.io
val AllPassFilter = sbt.io.AllPassFilter
val DirectoryFilter = sbt.io.DirectoryFilter

View File

@ -26,7 +26,7 @@ lazy val root = (project in file(".")).
}
def startGroup(name: String): Unit = ()
def endGroup(name: String, t: Throwable): Unit = ()
def endGroup(name: String, result: TestResult.Value): Unit = ()
def endGroup(name: String, result: TestResult): Unit = ()
},
check := {
val exists = marker.exists