public final class JkTestProcessor
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JkTestProcessor.JkEngineBehavior |
static class |
JkTestProcessor.JkProgressStyle
Style of progress mark to display on console while the tests are running.
|
Modifier and Type | Field and Description |
---|---|
JkTestProcessor.JkEngineBehavior |
engineBehavior |
JkRunnables |
postActions
Collection of Runnables to be executed after the test processor has run.
|
JkRunnables |
preActions |
Modifier and Type | Method and Description |
---|---|
JkJavaProcess |
getForkingProcess() |
java.lang.String |
getJunitPlatformVersion() |
static boolean |
isEngineTestPresent() |
JkTestResult |
launch()
Deprecated.
Use #run instead
|
static void |
main(java.lang.String[] args)
Non-public API.
|
static JkTestProcessor |
of(JkPathSequence testClasspath,
java.lang.Iterable<java.nio.file.Path> testClassRootDirs) |
static JkTestProcessor |
of(java.util.function.Supplier<JkPathSequence> testClasspath,
java.util.function.Supplier<java.lang.Iterable<java.nio.file.Path>> testClassRootDirs) |
JkTestResult |
run()
Launches the default test selection using the underlying JUnit Platform setup.
|
JkTestResult |
run(JkTestSelection testSelection)
Launches the specified test set with the underlying junit-platform.
|
JkTestResult |
runMatchingPatterns(java.lang.String... patterns)
Launches the specified test set by including the provided patterns, using the underlying junit-platform setup.
|
JkTestProcessor |
setForkingProcess(boolean fork) |
JkTestProcessor |
setForkingProcess(JkJavaProcess process) |
JkTestProcessor |
setJunitPlatformVersion(java.lang.String junitPlatformVersion) |
JkTestProcessor |
setRepoSetSupplier(java.util.function.Supplier<JkRepoSet> repoSetSupplier) |
JkTestProcessor |
setToolChain(JkJavaCompilerToolChain.JkJdks jdks,
JkJavaVersion javaVersion) |
public final JkTestProcessor.JkEngineBehavior engineBehavior
public final JkRunnables preActions
public final JkRunnables postActions
It is typically used for generating reports after a test definition has run.
If you want to run another test 'suite', you'll need to use JkProjectTesting.postActions
instead.
public static JkTestProcessor of(java.util.function.Supplier<JkPathSequence> testClasspath, java.util.function.Supplier<java.lang.Iterable<java.nio.file.Path>> testClassRootDirs)
public static JkTestProcessor of(JkPathSequence testClasspath, java.lang.Iterable<java.nio.file.Path> testClassRootDirs)
public static boolean isEngineTestPresent()
public JkJavaProcess getForkingProcess()
public JkTestProcessor setForkingProcess(JkJavaProcess process)
public JkTestProcessor setToolChain(JkJavaCompilerToolChain.JkJdks jdks, JkJavaVersion javaVersion)
public JkTestProcessor setForkingProcess(boolean fork)
public java.lang.String getJunitPlatformVersion()
public JkTestProcessor setJunitPlatformVersion(java.lang.String junitPlatformVersion)
public JkTestProcessor setRepoSetSupplier(java.util.function.Supplier<JkRepoSet> repoSetSupplier)
public JkTestResult run(JkTestSelection testSelection)
public JkTestResult runMatchingPatterns(java.lang.String... patterns)
@Deprecated public JkTestResult launch()
public JkTestResult run()
public static void main(java.lang.String[] args)