public SpecExtension extends ProjectLevelExtension, SpecLevelExtension
Reusable spec extension to be registered project wide
using AbstractProjectConfig.extensions or on a
per-spec basis by overriding extensions() in a interface Spec class.
AbstractProjectConfig.extensions,
interface Spec| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
intercept(Spec spec,
kotlin.jvm.functions.Function1<? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> process,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Intercepts execution of a
interface Spec. |
java.lang.Object intercept(Spec spec, kotlin.jvm.functions.Function1<? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> process, kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Intercepts execution of a interface Spec.
Implementations must invoke the process callback if they wish this spec to be executed. If they want to skip the tests in this spec they can elect not to invoke the callback.
Once the process function returns, the execution of this
interface Spec and all it's nested class TestCases are guaranteed
to have been completed.
process - callback function required to continue spec processinginterface Spec,
interface Spec,
class TestCase