public final class Configuration
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Options |
getRunOptions()
Get the set of options that can be used by test block transforms.
|
void |
registerTestTreeTransform(java.util.function.Function<TestBlock,TestBlock> transform)
Register a transform.
|
void |
removeCoreTestTransforms()
Remove the test transforms that are defined by the core cuppa framework.
|
void |
setAdditionalReporter(Reporter reporter)
Register a reporter that will be used in addition to the primary reporter given to the runner.
|
void |
setTestInstantiator(TestInstantiator testInstantiator)
Sets the class that will be used to instantiate test classes.
|
public void setTestInstantiator(TestInstantiator testInstantiator)
testInstantiator
- A class that instantiates test classes.public void registerTestTreeTransform(java.util.function.Function<TestBlock,TestBlock> transform)
transform
- The transform. Must not be null. Must not return null.public void setAdditionalReporter(Reporter reporter)
reporter
- The reporter. Must not be null.public Options getRunOptions()
public void removeCoreTestTransforms()
ConfigurationProvider
will need to make sure to add the following filters, if it intends to support the
features they provide: