mirror of https://github.com/sbt/sbt.git
fix testListeners definition, which mixed old and new styles of definitions, resulting in runtime error
This is an example of the need for an annotation to indicate a method shouldn't survive type checking.
This commit is contained in:
parent
44e9c26162
commit
79aeb7b00e
|
|
@ -336,7 +336,7 @@ object Defaults extends BuildCommon
|
|||
lazy val TaskGlobal: Scope = ThisScope.copy(task = Global)
|
||||
lazy val ConfigGlobal: Scope = ThisScope.copy(config = Global)
|
||||
def testTaskOptions(key: Scoped): Seq[Setting[_]] = inTask(key)( Seq(
|
||||
testListeners <<= (streams, resolvedScoped, streamsManager, logBuffered, cacheDirectory in test, testListeners in TaskGlobal) map { (s, sco, sm, buff, dir, ls) =>
|
||||
testListeners := {
|
||||
TestLogger(streams.value.log, testLogger(streamsManager.value, test in resolvedScoped.value.scope), logBuffered.value) +:
|
||||
new TestStatusReporter(succeededFile( cacheDirectory.in(test).value )) +:
|
||||
testListeners.in(TaskGlobal).value
|
||||
|
|
|
|||
Loading…
Reference in New Issue