|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.extensions.jfunc.runner.BaseTestRunner | +--junit.extensions.jfunc.textui.JFuncRunner
A command line based tool to run tests.
Fields inherited from class junit.extensions.jfunc.runner.BaseTestRunner |
SUITE_METHODNAME |
Constructor Summary | |
JFuncRunner()
Constructs a TestRunner. |
|
JFuncRunner(java.io.PrintStream writer)
Constructs a TestRunner using the given stream for all the output |
Method Summary | |
boolean |
beVerbose()
|
protected junit.framework.TestResult |
createTestResult()
Creates the TestResult to be used for the test run. |
junit.framework.TestResult |
doRun(junit.framework.Test suite,
boolean wait)
|
junit.runner.TestSuiteLoader |
getLoader()
Always use the StandardTestSuiteLoader. |
static void |
main(java.lang.String[] args)
|
protected void |
pause(boolean wait)
|
void |
print(junit.framework.TestResult result)
Prints failures to the standard output |
void |
printErrors(junit.framework.TestResult result)
Prints the errors to the standard output |
void |
printFailures(junit.framework.TestResult result)
Prints failures to the standard output |
void |
printHeader(junit.framework.TestResult result)
Prints the header of the report |
static void |
run(java.lang.Class testClass)
Runs a suite extracted from a TestCase subclass. |
static void |
run(junit.framework.Test suite)
Runs a single test and collects its results. |
static void |
runAndWait(junit.framework.Test suite)
Runs a single test and waits until the user types RETURN. |
protected void |
runFailed(java.lang.String message)
Override to define how to handle a failed loading of a test suite. |
protected junit.framework.TestResult |
start(java.lang.String[] args)
Starts a test run. |
boolean |
useColor()
|
protected java.io.PrintStream |
writer()
|
Methods inherited from class junit.extensions.jfunc.runner.BaseTestRunner |
clearStatus, elapsedTimeAsString, extractClassName, filterStack, filterStack, getFilteredTrace, getFilteredTrace, getPreference, getPreference, getTest, getTest, inVAJava, loadSuiteClass, processArguments, setLoading, truncate, useReloadingTestSuiteLoader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JFuncRunner()
public JFuncRunner(java.io.PrintStream writer)
Method Detail |
public junit.runner.TestSuiteLoader getLoader()
getLoader
in class BaseTestRunner
protected junit.framework.TestResult createTestResult()
public junit.framework.TestResult doRun(junit.framework.Test suite, boolean wait)
protected void pause(boolean wait)
public boolean useColor()
public boolean beVerbose()
public static void main(java.lang.String[] args)
public void print(junit.framework.TestResult result)
public void printErrors(junit.framework.TestResult result)
public void printFailures(junit.framework.TestResult result)
public void printHeader(junit.framework.TestResult result)
public static void run(java.lang.Class testClass)
public static void run(junit.framework.Test suite)
public static void main (String[] args) { test.textui.TestRunner.run(suite()); }
public static void runAndWait(junit.framework.Test suite)
protected junit.framework.TestResult start(java.lang.String[] args) throws java.lang.Exception
protected void runFailed(java.lang.String message)
BaseTestRunner
runFailed
in class BaseTestRunner
protected java.io.PrintStream writer()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |