|
Eclipse JDT Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
TestRunListener
public interface ITestRunListener
A listener interface for observing the execution of a test run.
Clients contributing to the
org.eclipse.jdt.junit.testRunListener
extension point implement this interface.
| Field Summary | |
|---|---|
static int |
STATUS_ERROR
Deprecated. Status constant indicating that a test had an error an unanticipated exception (constant value 1). |
static int |
STATUS_FAILURE
Deprecated. Status constant indicating that a test failed an assertion (constant value 2). |
static int |
STATUS_OK
Deprecated. Status constant indicating that a test passed (constant value 0). |
| Method Summary | |
|---|---|
void |
testEnded(String testId,
String testName)
Deprecated. An individual test has ended. |
void |
testFailed(int status,
String testId,
String testName,
String trace)
Deprecated. An individual test has failed with a stack trace. |
void |
testReran(String testId,
String testClass,
String testName,
int status,
String trace)
Deprecated. An individual test has been rerun. |
void |
testRunEnded(long elapsedTime)
Deprecated. A test run has ended. |
void |
testRunStarted(int testCount)
Deprecated. A test run has started. |
void |
testRunStopped(long elapsedTime)
Deprecated. A test run has been stopped prematurely. |
void |
testRunTerminated()
Deprecated. The VM instance performing the tests has terminated. |
void |
testStarted(String testId,
String testName)
Deprecated. An individual test has started. |
| Field Detail |
|---|
static final int STATUS_OK
testFailed(int, String, String, String),
Constant Field Valuesstatic final int STATUS_ERROR
testFailed(int, String, String, String),
Constant Field Valuesstatic final int STATUS_FAILURE
testFailed(int, String, String, String),
Constant Field Values| Method Detail |
|---|
void testRunStarted(int testCount)
testCount - the number of individual tests that will be runvoid testRunEnded(long elapsedTime)
elapsedTime - the total elapsed time of the test runvoid testRunStopped(long elapsedTime)
elapsedTime - the time elapsed before the test run was stopped
void testStarted(String testId,
String testName)
testId - a unique Id identifying the testtestName - the name of the test that started
void testEnded(String testId,
String testName)
testId - a unique Id identifying the testtestName - the name of the test that ended
void testFailed(int status,
String testId,
String testName,
String trace)
status - the outcome of the test; one of
STATUS_ERROR or
STATUS_FAILUREtestId - a unique Id identifying the testtestName - the name of the test that failedtrace - the stack tracevoid testRunTerminated()
void testReran(String testId,
String testClass,
String testName,
int status,
String trace)
testId - a unique Id identifying the testtestClass - the name of the test class that was reruntestName - the name of the test that was rerunstatus - the outcome of the test that was rerun; one of
STATUS_OK, STATUS_ERROR,
or STATUS_FAILUREtrace - the stack trace in the case of abnormal termination,
or the empty string if none
|
Eclipse JDT Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.