public class SpecRunner
The base class for executing all the tests inside a Spec.
Each spec can define how tests are isolated from each other, via an IsolationMode.
The implementation for each mode is handled by an instance of class SpecRunner.
class SpecRunner| Constructor and Description |
|---|
SpecRunner(TestEngineListener listener)
The base class for executing all the tests inside a Spec.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<io.kotlintest.TestCase,io.kotlintest.TestResult> |
execute(io.kotlintest.Spec spec,
io.kotlintest.extensions.TopLevelTests topLevelTests) |
TestEngineListener |
getListener()
provides callbacks on tests as they are executed.
|
java.lang.Object |
interceptSpec(io.kotlintest.Spec spec,
kotlin.jvm.functions.Function1<? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> afterInterception,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p) |
public SpecRunner(TestEngineListener listener)
The base class for executing all the tests inside a Spec.
Each spec can define how tests are isolated from each other, via an IsolationMode.
The implementation for each mode is handled by an instance of class SpecRunner.
listener - provides callbacks on tests as they are executed. These callbacks are usedto ultimately feed back into the test engine implementation.listener - provides callbacks on tests as they are executed. These callbacks are used
to ultimately feed back into the test engine implementation.class SpecRunnerpublic java.util.Map<io.kotlintest.TestCase,io.kotlintest.TestResult> execute(io.kotlintest.Spec spec,
io.kotlintest.extensions.TopLevelTests topLevelTests)
public java.lang.Object interceptSpec(io.kotlintest.Spec spec,
kotlin.jvm.functions.Function1<? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> afterInterception,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
public TestEngineListener getListener()
provides callbacks on tests as they are executed.
These callbacks are usedto ultimately feed back into the test engine implementation.