public class JkProjectTesting
extends java.lang.Object
JkJavaCompiler, JkJavaCompileSpec for test compilation and
JkTestProcessor, JkTestSelection for test run.| Modifier and Type | Field and Description |
|---|---|
JkProjectConstruction |
__
For parent chaining
|
| Modifier and Type | Method and Description |
|---|---|
JkProjectTesting |
apply(java.util.function.Consumer<JkProjectTesting> consumer) |
JkProjectCompilation<JkProjectTesting> |
getCompilation()
Returns the compilation step for the test part.
|
java.nio.file.Path |
getReportDir() |
JkPathSequence |
getTestClasspath()
Returns the classpath to run the test.
|
JkTestProcessor<JkProjectTesting> |
getTestProcessor()
Returns processor running the tests.
|
JkTestSelection<JkProjectTesting> |
getTestSelection()
Returns tests to be run.
|
boolean |
isBreakOnFailures()
Returns if #run should fail (throwing a
IllegalArgumentException) if test result has failures. |
boolean |
isSkipped()
Returns if the tests should be skipped.
|
void |
run()
Performs entire test phase, including :
compile regular code if needed
perform pre test tasks if present
compile test code and process test resources
execute compiled tests
execute post tesks if present
|
void |
runIfNeeded()
As #run but perfom only if not already done.
|
JkProjectTesting |
setBreakOnFailures(boolean breakOnFailures) |
JkProjectTesting |
setReportDir(java.lang.String reportDir) |
JkProjectTesting |
setSkipped(boolean skipped)
Specifies if the tests should be skipped.
|
public final JkProjectConstruction __
public JkProjectTesting apply(java.util.function.Consumer<JkProjectTesting> consumer)
public JkTestSelection<JkProjectTesting> getTestSelection()
public JkTestProcessor<JkProjectTesting> getTestProcessor()
public JkProjectCompilation<JkProjectTesting> getCompilation()
public JkPathSequence getTestClasspath()
public boolean isSkipped()
public JkProjectTesting setSkipped(boolean skipped)
public boolean isBreakOnFailures()
IllegalArgumentException) if test result has failures.public JkProjectTesting setBreakOnFailures(boolean breakOnFailures)
public java.nio.file.Path getReportDir()
public JkProjectTesting setReportDir(java.lang.String reportDir)
public void run()
public void runIfNeeded()