|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectprotoj.lang.internal.ant.JunitTask
public final class JunitTask
A convenience class for running junit tests. Use the constructors to specify
the minimal and most widely anticipated configuration and the
initXXX methods for the less common configuration options.
| Field Summary | |
|---|---|
static java.lang.String |
ERROR
|
| Constructor Summary | |
|---|---|
JunitTask(java.io.File junitReportsDir,
java.io.File javaDir,
ArgRunnable<org.apache.tools.ant.types.Path> classpathConfig,
java.lang.String maxMemory,
java.lang.String includes,
java.lang.String excludes)
Accepts the information required for running junit tests. |
|
| Method Summary | |
|---|---|
void |
captureError()
|
void |
execute()
|
java.lang.String |
getError()
|
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask |
getJunit()
|
void |
initDebug(int port,
boolean suspend)
Invoke if debugging is required. |
void |
initJvmargs(java.util.List<java.lang.String> jvmargs)
Invoke if any virtual machine arguments are required. |
void |
initJvmargs(java.lang.String... jvmargs)
Invoke if any virtual machine arguments are required. |
void |
initLogging(java.io.File logFile)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ERROR
| Constructor Detail |
|---|
public JunitTask(java.io.File junitReportsDir,
java.io.File javaDir,
ArgRunnable<org.apache.tools.ant.types.Path> classpathConfig,
java.lang.String maxMemory,
java.lang.String includes,
java.lang.String excludes)
junitReportsDir - the directory where the reports should be createdjavaDir - the directory to search for junit testsclasspathConfig - maxMemory - the maximum memory to be given to junitincludes - which tests to include, can be nullexcludes - which tests to exclude, can be null| Method Detail |
|---|
public void initDebug(int port,
boolean suspend)
port - the port that will accept a debugger connectionsuspend - whether or not the virtual machine will suspend until a
debugger connection is madepublic void initJvmargs(java.lang.String... jvmargs)
jvmargs - public void initJvmargs(java.util.List<java.lang.String> jvmargs)
jvmargs - public void captureError()
public java.lang.String getError()
public void initLogging(java.io.File logFile)
public void execute()
public org.apache.tools.ant.taskdefs.optional.junit.JUnitTask getJunit()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||