JsUnit
Project Developer Home doxygen

Public Member Functions | Static Public Attributes | List of all members
TextTestRunner Class Reference

Class for an application running test suites with a test based status report. More...

Inheritance diagram for TextTestRunner:
Inheritance graph
Collaboration diagram for TextTestRunner:
Collaboration graph

Public Member Functions

void TextTestRunner (Object outdev)
 The constructor. More...
 
- Public Member Functions inherited from BaseTestRunner
void BaseTestRunner ()
 
void testEnded (void test)
 
void clearStatus ()
 
void runFailed (void msg)
 
void testFailed (void test)
 
void testStarted (void test)
 

Static Public Attributes

static Number SUCCESS_EXIT
 Exit code, when all tests succeed. More...
 
static Number EXCEPTION_EXIT
 Exit code, when at least one test fails with an error. More...
 
static Number FAILURE_EXIT
 Exit code, when at least one test fails with a failure. More...
 
- Static Public Attributes inherited from BaseTestRunner
static int mPreferences
 

Additional Inherited Members

- Public Attributes inherited from BaseTestRunner
int mElapsedTime
 
- Protected Member Functions inherited from TestListener
virtual void TestListener ()
 
virtual void startTest (Test test)
 A test started. More...
 
virtual void endTest (Test test)
 A test ended. More...
 
virtual void addFailure (Test test, AssertionFailedError afe)
 An occured failure was added. More...
 
virtual void addError (Test test, Error except)
 An occurred error was added. More...
 

Detailed Description

Class for an application running test suites with a test based status report.

Constructor & Destructor Documentation

void TextTestRunner::TextTestRunner ( Object  outdev)

The constructor.

Parameters
outdevOutput device The TestRunner is initialized with the given output device. This may be an instance of a ResultPrinter, a PrinterWriter or undefined. For a PrinterWriter the constructor creates a new instance of a standard ResultPrinter with this PrinterWriter. If outdev is undefined it creates a ResultPrinter with the SystemWriter.

Member Data Documentation

Number TextTestRunner::EXCEPTION_EXIT
static

Exit code, when at least one test fails with an error.

Number TextTestRunner::FAILURE_EXIT
static

Exit code, when at least one test fails with a failure.

Number TextTestRunner::SUCCESS_EXIT
static

Exit code, when all tests succeed.


The documentation for this class was generated from the following file:

JsUnit © 1999, 2000, 2001, 2002, 2003, 2006, 2007 by Jörg Schaible
Generated on Wed Apr 15 2015 02:33:07 for JsUnit by doxygen 1.8.5