|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.textui.TestRunner
ch.javasoft.junit.textui.TestRunner
public class TestRunner
A command line based tool to run tests.
java junit.textui.TestRunner [-wait] TestCaseClassTestRunner expects the name of a TestCase class as argument. If this class defines a static
suite method it
will be invoked and the returned test is run. Otherwise all
the methods starting with "test" having no arguments are run.
When the wait command line argument is given TestRunner waits until the users types RETURN.
TestRunner prints a trace as the tests are executed followed by a summary at the end.
| Constructor Summary | |
|---|---|
TestRunner()
Constructs a TestRunner. |
|
TestRunner(PrintStream writer)
Constructs a TestRunner using the given stream for all the output |
|
TestRunner(ResultPrinter printer)
Constructs a TestRunner using the given ResultPrinter all the output |
|
| Method Summary | |
|---|---|
Test |
getTest(String suiteClassName)
|
static void |
main(String[] args)
|
TestResult |
start(String[] args)
Starts a test run. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TestRunner()
public TestRunner(PrintStream writer)
public TestRunner(ResultPrinter printer)
| Method Detail |
|---|
public Test getTest(String suiteClassName)
public TestResult start(String[] args)
throws Exception
Exceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||