|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.quilt.framework.QuiltTest | +--org.quilt.runner.Runner | +--org.quilt.runner.BaseTestRunner
Stand-along Quilt test runner, fully compatible with Ant's JUnit options. Accepts options from Ant via QuiltTask; can also be run from the command line using TestRunner.
QuiltTask
,
QuiltTest
,
TestRunner
Field Summary |
Fields inherited from interface org.quilt.runner.RunnerConst |
DEFAULT_TRACE_FILTERS, ERRORS, FAILURES, SUCCESS |
Constructor Summary | |
BaseTestRunner(QuiltTest test)
Constructor used by command line test runner. |
|
BaseTestRunner(QuiltTest test,
java.lang.ClassLoader loader)
Constructor used when not using Quilt class loader. |
Method Summary | |
void |
addError(junit.framework.Test test,
java.lang.Throwable t)
An unexpected error occurred. |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError t)
A test failure (or error) has occurred. |
void |
addFailure(junit.framework.Test test,
java.lang.Throwable t)
A test failure (or error) has occurred. |
void |
addFormatter(Formatter f)
Add a result formatter |
void |
endTest(junit.framework.Test test)
Called at end of test suite. |
int |
getRetCode()
Get status code from run. |
void |
handleErrorFlush(java.lang.String line)
Flush error output. |
void |
handleErrorOutput(java.lang.String line)
Process an error message. |
void |
handleFlush(java.lang.String line)
Flush standard output. |
void |
handleOutput(java.lang.String line)
Handle a block of output. |
void |
run()
|
void |
startTest(junit.framework.Test t)
Called at start of test run. |
Methods inherited from class org.quilt.runner.Runner |
filterStack, getFilteredTrace |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BaseTestRunner(QuiltTest test)
test
- Data structure holding parameters for a single
test suite.public BaseTestRunner(QuiltTest test, java.lang.ClassLoader loader)
test
- Data structure holding parameters for a single
test suite.loader
- Class loader passed from parent.Method Detail |
public void run()
run
in class Runner
public int getRetCode()
getRetCode
in class Runner
public void startTest(junit.framework.Test t)
startTest
in interface junit.framework.TestListener
startTest
in class Runner
public void endTest(junit.framework.Test test)
endTest
in interface junit.framework.TestListener
endTest
in class Runner
public void addFailure(junit.framework.Test test, java.lang.Throwable t)
addFailure
in class Runner
public void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError t)
addFailure
in interface junit.framework.TestListener
addFailure
in class Runner
public void addError(junit.framework.Test test, java.lang.Throwable t)
addError
in interface junit.framework.TestListener
addError
in class Runner
public void handleOutput(java.lang.String line)
handleOutput
in class Runner
public void handleErrorOutput(java.lang.String line)
handleErrorOutput
in class Runner
public void handleFlush(java.lang.String line)
handleFlush
in class Runner
public void handleErrorFlush(java.lang.String line)
handleErrorFlush
in class Runner
public void addFormatter(Formatter f)
addFormatter
in class Runner
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |