mirror of https://github.com/sbt/sbt.git
add method noTestCompletion() for disabling test name completion. ref #66
This commit is contained in:
parent
1dc3f0ed56
commit
b867d2e398
|
|
@ -968,7 +968,10 @@ trait BuildExtra extends BuildCommon
|
|||
}
|
||||
private[this] def inScoped[T](sk: ScopedKey[_], i: Initialize[T]): Initialize[T] = inScope(fillTaskAxis(sk.scope, sk.key), i)
|
||||
private[this] def inScope[T](s: Scope, i: Initialize[T]): Initialize[T] = i mapReferenced Project.mapScope(Scope.replaceThis(s))
|
||||
|
||||
|
||||
/** Disables post-compilation hook for determining tests for tab-completion (such as for 'test-only').
|
||||
* This is useful for reducing test:compile time when not running test. */
|
||||
def noTestCompletion(config: Configuration = Test): Setting[_] = inConfig(config)( Seq(definedTests <<= Defaults.detectTests) ).head
|
||||
}
|
||||
trait BuildCommon
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue