mirror of https://github.com/sbt/sbt.git
Expose TestResult
This commit is contained in:
parent
596dc62d7e
commit
2a1d8fb9e7
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue