public class Suite
extends org.apache.tools.ant.Task
implements org.apache.tools.ant.TaskContainer
Constructor and Description |
---|
Suite() |
Modifier and Type | Method and Description |
---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet fs)
Add a fileset to the suite.
|
void |
addSuite(Suite s)
Add a stuie to the suite.
|
void |
addTask(org.apache.tools.ant.Task task)
Add a task to execute, most likely a testcase, but really can be any task.
|
void |
addTestCase(TestCase tc)
Add a testcase to the suite.
|
void |
execute()
Run tests.
|
int |
getFailedCount() |
boolean |
getFailonerror() |
java.util.Enumeration |
getFailures() |
java.lang.String |
getName() |
int |
getPassedCount() |
int |
getRanCount() |
java.lang.String |
getSummary() |
int |
getTestCaseCount() |
int |
getWarningCount() |
void |
init() |
protected void |
loadTestFiles(org.apache.tools.ant.types.FileSet fs,
java.util.Vector destination)
Create TestCases from the files specified in a FileSet.
|
void |
setAssertsenabled(boolean b)
Should asserts be enabled? Asserts are enabled by default.
|
void |
setEnabled(boolean b)
Set to true if the test should be allowed to run.
|
void |
setFailonerror(boolean f) |
void |
setName(java.lang.String s)
Set a name for the suite, optional attribute.
|
void |
setShowsummary(boolean b)
Should the results be shown?
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void init()
init
in class org.apache.tools.ant.Task
public void addTestCase(TestCase tc)
tc
- the testcase to addpublic void addSuite(Suite s)
s
- the suite to addpublic void addTask(org.apache.tools.ant.Task task)
addTask
in interface org.apache.tools.ant.TaskContainer
task
- Nested task to execute. public void addFileset(org.apache.tools.ant.types.FileSet fs)
public void setName(java.lang.String s)
s
- the name for the suite.public java.lang.String getName()
public void setFailonerror(boolean f)
public boolean getFailonerror()
public void setEnabled(boolean b)
b
- if true, execute the test. This is handy for enabling or disabling
groups of tests by setting a single property. Optional, default
is true, the suite should run.public void setAssertsenabled(boolean b)
b
- if false, disable assertspublic void setShowsummary(boolean b)
b
- show the results if truepublic int getTestCaseCount()
public int getRanCount()
public int getPassedCount()
public int getFailedCount()
public java.util.Enumeration getFailures()
public int getWarningCount()
public void execute()
execute
in class org.apache.tools.ant.Task
public java.lang.String getSummary()
protected void loadTestFiles(org.apache.tools.ant.types.FileSet fs, java.util.Vector destination)
fs
- the fileset to use for testcasesdestination
- where to store the newly created TestCases.