|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.surefire.booter.SurefireBooter
public class SurefireBooter
Field Summary | |
---|---|
static int |
NO_TESTS_EXIT_CODE
|
static int |
TESTS_FAILED_EXIT_CODE
|
static int |
TESTS_SUCCEEDED_EXIT_CODE
|
Constructor Summary | |
---|---|
SurefireBooter()
|
Method Summary | |
---|---|
void |
addClassPathUrl(String path)
|
void |
addReport(String report)
|
void |
addReport(String report,
Object[] constructorParams)
|
void |
addSurefireBootClassPathUrl(String path)
|
void |
addSurefireClassPathUrl(String path)
|
void |
addTestSuite(String suiteClassName,
Object[] constructorParams)
|
File |
getReportsDirectory()
Get the directory where reports will be saved |
boolean |
isForking()
|
static void |
main(String[] args)
This method is invoked when Surefire is forked - this method parses and organizes the arguments passed to it and then calls the Surefire class' run method. |
int |
run()
|
void |
setChildDelegation(boolean childDelegation)
|
void |
setEnableAssertions(boolean enableAssertions)
|
void |
setFailIfNoTests(boolean failIfNoTests)
Setting this to true will cause a failure if there are no tests to run |
void |
setForkConfiguration(ForkConfiguration forkConfiguration)
|
void |
setForkedProcessTimeoutInSeconds(int forkedProcessTimeoutInSeconds)
|
void |
setRedirectTestOutputToFile(boolean redirectTestOutputToFile)
When forking, setting this to true will make the test output to be saved in a file instead of showing it on the standard output |
void |
setReportsDirectory(File reportsDirectory)
Set the directory where reports will be saved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TESTS_SUCCEEDED_EXIT_CODE
public static final int TESTS_FAILED_EXIT_CODE
public static final int NO_TESTS_EXIT_CODE
Constructor Detail |
---|
public SurefireBooter()
Method Detail |
---|
public void addReport(String report)
public void addReport(String report, Object[] constructorParams)
public void addTestSuite(String suiteClassName, Object[] constructorParams)
public void addClassPathUrl(String path)
public void addSurefireClassPathUrl(String path)
public void addSurefireBootClassPathUrl(String path)
public void setFailIfNoTests(boolean failIfNoTests)
redirectTestOutputToFile
- public void setRedirectTestOutputToFile(boolean redirectTestOutputToFile)
redirectTestOutputToFile
- public void setReportsDirectory(File reportsDirectory)
reportsDirectory
- the directorypublic File getReportsDirectory()
public void setForkConfiguration(ForkConfiguration forkConfiguration)
public boolean isForking()
public int run() throws SurefireBooterForkException, SurefireExecutionException
SurefireBooterForkException
SurefireExecutionException
public static void main(String[] args) throws Throwable
args
-
Throwable
public void setChildDelegation(boolean childDelegation)
public void setEnableAssertions(boolean enableAssertions)
public void setForkedProcessTimeoutInSeconds(int forkedProcessTimeoutInSeconds)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |