public class JkJavaProjectTesting
extends java.lang.Object
JkJavaCompiler
, JkJavaCompileSpec
for test compilation and
JkTestProcessor
, JkTestSelection
for test run.Modifier and Type | Field and Description |
---|---|
JkJavaProjectJarProduction |
__
For parent chaining
|
JkRunnables |
afterTest |
Modifier and Type | Method and Description |
---|---|
JkJavaProjectTesting |
apply(java.util.function.Consumer<JkJavaProjectTesting> consumer) |
JkJavaProjectCompilation<JkJavaProjectTesting> |
getCompilation()
Returns the compilation step for the test part.
|
java.nio.file.Path |
getReportDir() |
JkPathSequence |
getTestClasspath()
Returns the classpath to run the test.
|
JkTestProcessor<JkJavaProjectTesting> |
getTestProcessor()
Returns processor running the tests.
|
JkTestSelection<JkJavaProjectTesting> |
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 |
runIfNecessary()
As #run but perfom only if not already done.
|
JkJavaProjectTesting |
setBreakOnFailures(boolean breakOnFailures) |
JkJavaProjectTesting |
setReportDir(java.lang.String reportDir) |
void |
setSkipped(boolean skipped)
Specifies if the tests should be skipped.
|
public final JkRunnables afterTest
public final JkJavaProjectJarProduction __
public JkJavaProjectTesting apply(java.util.function.Consumer<JkJavaProjectTesting> consumer)
public JkTestSelection<JkJavaProjectTesting> getTestSelection()
public JkTestProcessor<JkJavaProjectTesting> getTestProcessor()
public JkJavaProjectCompilation<JkJavaProjectTesting> getCompilation()
public JkPathSequence getTestClasspath()
public boolean isSkipped()
public void setSkipped(boolean skipped)
public boolean isBreakOnFailures()
IllegalArgumentException
) if test result has failures.public JkJavaProjectTesting setBreakOnFailures(boolean breakOnFailures)
public java.nio.file.Path getReportDir()
public JkJavaProjectTesting setReportDir(java.lang.String reportDir)
public void run()
public void runIfNecessary()