public final class Runner
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Runner.TagsRunOption
Tag run state to perform tag based filtering with.
|
Constructor and Description |
---|
Runner()
Creates a new runner with no run tags and a configuration loaded from the classpath.
|
Runner(Configuration configuration)
Creates a new runner with the given run state and configuration.
|
Runner(Options runOptions)
Creates a new runner with the given run state and a configuration loaded from the classpath.
|
Runner(Tags runTags)
Deprecated.
Use @{link
Runner(Options) } and provide runTags as runState instead
and use state in ConfigurationProvider implementation to insert the TagTestBlockFilter in
the appropriate order. |
Runner(Tags runTags,
Configuration configuration)
Deprecated.
Use @{link
Runner(Configuration) } and provide runTags as
runState instead and use state in ConfigurationProvider implementation to insert the
TagTestBlockFilter in the appropriate order. |
Modifier and Type | Method and Description |
---|---|
TestBlock |
defineTests(java.lang.Iterable<java.lang.Class<?>> testClasses)
Instantiates the test classes, which define tests as side effects, and return the root test block.
|
void |
run(TestBlock rootBlock,
Reporter reporter)
Runs the tests contained in the provided test block and any nested test blocks, using the provided reporter.
|
public Runner()
@Deprecated public Runner(Tags runTags)
Runner(Options)
} and provide runTags as runState instead
and use state in ConfigurationProvider
implementation to insert the TagTestBlockFilter
in
the appropriate order.runTags
- Tags to filter the tests on.@Deprecated public Runner(Tags runTags, Configuration configuration)
Runner(Configuration)
} and provide runTags as
runState instead and use state in ConfigurationProvider
implementation to insert the
TagTestBlockFilter
in the appropriate order.runTags
- Tags to filter the tests on.configuration
- Cuppa configuration to control the behaviour of the runner.public Runner(Options runOptions)
runOptions
- Any state information that should be used by test block transforms.public Runner(Configuration configuration)
configuration
- Cuppa configuration to control the behaviour of the runner.public TestBlock defineTests(java.lang.Iterable<java.lang.Class<?>> testClasses)
testClasses
- The test classes that contain the tests to be executed.public void run(TestBlock rootBlock, Reporter reporter)
rootBlock
- The root test block that contains all tests to be run.reporter
- The reporter to use to report test results.