|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
ise.antelope.tasks.Suite
public class Suite
Modeled after the TestSuite provided by jUnit.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
Suite()
|
Method Summary | |
---|---|
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? |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Suite()
Method Detail |
---|
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.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |