|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITestRunListener
Receives event notifications during instrumentation test runs.
Patterned after org.junit.runner.notification.RunListener The sequence of calls will be:
Method Summary | |
---|---|
void |
testAssumptionFailure(TestIdentifier test,
java.lang.String trace)
Called when an atomic test flags that it assumes a condition that is false |
void |
testEnded(TestIdentifier test,
java.util.Map<java.lang.String,java.lang.String> testMetrics)
Reports the execution end of an individual test case. |
void |
testFailed(TestIdentifier test,
java.lang.String trace)
Reports the failure of a individual test case. |
void |
testIgnored(TestIdentifier test)
Called when a test will not be run, generally because a test method is annotated with org.junit.Ignore. |
void |
testRunEnded(long elapsedTime,
java.util.Map<java.lang.String,java.lang.String> runMetrics)
Reports end of test run. |
void |
testRunFailed(java.lang.String errorMessage)
Reports test run failed to complete due to a fatal error. |
void |
testRunStarted(java.lang.String runName,
int testCount)
Reports the start of a test run. |
void |
testRunStopped(long elapsedTime)
Reports test run stopped before completion due to a user request. |
void |
testStarted(TestIdentifier test)
Reports the start of an individual test case. |
Method Detail |
---|
void testRunStarted(java.lang.String runName, int testCount)
runName
- the test run nametestCount
- total number of tests in test runvoid testStarted(TestIdentifier test)
test
- identifies the testvoid testFailed(TestIdentifier test, java.lang.String trace)
test
- identifies the testtrace
- stack trace of failurevoid testAssumptionFailure(TestIdentifier test, java.lang.String trace)
test
- identifies the testtrace
- stack trace of failurevoid testIgnored(TestIdentifier test)
test
- identifies the testvoid testEnded(TestIdentifier test, java.util.Map<java.lang.String,java.lang.String> testMetrics)
testFailed(com.android.ddmlib.testrunner.TestIdentifier, java.lang.String)
was not invoked, this test passed. Also returns any key/value
metrics which may have been emitted during the test case's execution.
test
- identifies the testtestMetrics
- a Map
of the metrics emittedvoid testRunFailed(java.lang.String errorMessage)
errorMessage
- String
describing reason for run failure.void testRunStopped(long elapsedTime)
elapsedTime
- device reported elapsed time, in millisecondsvoid testRunEnded(long elapsedTime, java.util.Map<java.lang.String,java.lang.String> runMetrics)
elapsedTime
- device reported elapsed time, in millisecondsrunMetrics
- key-value pairs reported at the end of a test run
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |