Package junit.textui

Class TestRunner

  • All Implemented Interfaces:
    TestListener

    public class TestRunner
    extends BaseTestRunner
    A command line based tool to run tests.
     java junit.textui.TestRunner [-wait] TestCaseClass
     

    TestRunner 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.