Package ucb.junit
Class textui
java.lang.Object
ucb.junit.textui
An alternative unit test runner with text output.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Produces the report described for runClasses, on the classes named in ARGS.static int
runClasses
(int verbosity, Class<?>... classes) Run all tests in CLASSES, reporting results on the standard error output, depending on VERBOSITY, which determines what is reported.static int
runClasses
(int verbosity, List<Class<?>> classes) Return as forrunClasses
(VERBOSITY, CLASSES), but with the class list stored in a list rather than an array.static int
runClasses
(Class<?>... classes) ReturnrunClasses
(Messages, CLASSES).static int
runClasses
(List<Class<?>> classes) ReturnrunClasses
(MESSAGES, CLASSES).
-
Field Details
-
SILENT
public static final int SILENTVerbosity levels.- See Also:
-
SUMMARY
public static final int SUMMARYVerbosity levels.- See Also:
-
TESTNAMES
public static final int TESTNAMESVerbosity levels.- See Also:
-
MESSAGES
public static final int MESSAGESVerbosity levels.- See Also:
-
-
Constructor Details
-
textui
public textui()
-
-
Method Details
-
runClasses
Run all tests in CLASSES, reporting results on the standard error output, depending on VERBOSITY, which determines what is reported. if VERBOSITY is-
Silent
, prints nothing. -
Summary
, prints the total test time and numbers of tests run and failed. -
TestNames
, as for Summary, plus print names of failing test methods. -
Messages
, as for TestNames, and print descriptive message notating the error, plus its location in the test routines.
-
-
runClasses
ReturnrunClasses
(Messages, CLASSES). -
runClasses
Return as forrunClasses
(VERBOSITY, CLASSES), but with the class list stored in a list rather than an array. -
runClasses
ReturnrunClasses
(MESSAGES, CLASSES). -
main
Produces the report described for runClasses, on the classes named in ARGS. An initial "--level=NAME" determines the verbosity, which may be Silent, Summary, TestNames, or Messages. Default is Messages.
-