JsUnit
Project Developer Home doxygen

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

A listener interface for observing the execution of a test run. More...

Collaboration diagram for TestRunListener:
Collaboration graph

Public Member Functions

void TestRunListener ()
 
void testEnded (String testName)
 A test ended. More...
 
void testStarted (String testName)
 A test started. More...
 
void testFailed (Number status, String testName, String trace)
 A test failed. More...
 
void testRunEnded (Number elapsedTime)
 A test run was ended. More...
 
void testRunStopped (Number elapsedTime)
 A test run was stopped. More...
 
void testRunStarted (String suiteName, Number testCount)
 A test run was started. More...
 

Static Public Attributes

static Number STATUS_ERROR
 Status for an error. More...
 
static Number STATUS_FAILURE
 Status for a failure. More...
 

Detailed Description

A listener interface for observing the execution of a test run.

Note
This class is an "initial version" in JUnit 3.8.1 and might be replace TestListener some day.

Constructor & Destructor Documentation

void TestRunListener::TestRunListener ( )

Member Function Documentation

void TestRunListener::testEnded ( String  testName)

A test ended.

Parameters
testNameThe name of the ended test.
void TestRunListener::testFailed ( Number  status,
String  testName,
String  trace 
)

A test failed.

Parameters
statusThe status of the test.
testNameThe name of the failed test.
traceThe stack trace as String.
void TestRunListener::testRunEnded ( Number  elapsedTime)

A test run was ended.

Parameters
elapsedTimeThe number of elapsed milliseconds.
void TestRunListener::testRunStarted ( String  suiteName,
Number  testCount 
)

A test run was started.

Parameters
suiteNameThe name of the test suite.
testCountThe number of tests in the suite.
void TestRunListener::testRunStopped ( Number  elapsedTime)

A test run was stopped.

Parameters
elapsedTimeThe number of elapsed milliseconds.
void TestRunListener::testStarted ( String  testName)

A test started.

Parameters
testNameThe name of the started test.

Member Data Documentation

Number TestRunListener::STATUS_ERROR
static

Status for an error.

Number TestRunListener::STATUS_FAILURE
static

Status for a failure.


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