Methods Summary |
---|
public java.lang.String | getErrorMessage()Returns the error message that was reported when collecting test info.
Returns null if no error occurred.
return mErrorMessage;
|
public int | getTestCaseCount()Returns the total test count in the test run.
return mTotalTestCount;
|
public void | sendTrees(org.eclipse.jdt.internal.junit.runner.IVisitsTestTrees notified)Sends info about the test tree to be executed (ie the suites and their enclosed tests)
for (ITestReference ref : mTestTree.values()) {
ref.sendTree(notified);
}
|
public void | testEnded(com.android.ddmlib.testrunner.TestIdentifier test)
// ignore
|
public void | testFailed(TestFailure status, com.android.ddmlib.testrunner.TestIdentifier test, java.lang.String trace)
// ignore - should be impossible since this is only collecting test information
|
public void | testRunEnded(long elapsedTime)
// ignore
|
public void | testRunFailed(java.lang.String errorMessage)
mErrorMessage = errorMessage;
|
public void | testRunStarted(int testCount)
mTotalTestCount = testCount;
|
public void | testRunStopped(long elapsedTime)
// ignore
|
public void | testStarted(com.android.ddmlib.testrunner.TestIdentifier test)
TestSuiteReference suiteRef = mTestTree.get(test.getClassName());
if (suiteRef == null) {
// this test suite has not been seen before, create it
suiteRef = new TestSuiteReference(test.getClassName());
mTestTree.put(test.getClassName(), suiteRef);
}
suiteRef.addTest(new TestCaseReference(test));
|