public class BuckXmlTestRunListener
extends com.android.ddmlib.testrunner.XmlTestRunListener
| Modifier and Type | Field and Description |
|---|---|
protected static String |
TEST_RESULT_FILE |
| Constructor and Description |
|---|
BuckXmlTestRunListener() |
| Modifier and Type | Method and Description |
|---|---|
protected File |
getResultFile(File reportDir)
Creates a
File where the report will be created. |
void |
setReportDir(File file) |
void |
testRunEnded(long elapsedTime,
Map<String,String> runMetrics) |
void |
testRunFailed(String errorMessage) |
void |
testRunStarted(String runName,
int testCount) |
protected static final String TEST_RESULT_FILE
public void setReportDir(File file)
setReportDir in class com.android.ddmlib.testrunner.XmlTestRunListenerpublic void testRunStarted(String runName, int testCount)
testRunStarted in interface com.android.ddmlib.testrunner.ITestRunListenertestRunStarted in class com.android.ddmlib.testrunner.XmlTestRunListenerpublic void testRunFailed(String errorMessage)
testRunFailed in interface com.android.ddmlib.testrunner.ITestRunListenertestRunFailed in class com.android.ddmlib.testrunner.XmlTestRunListenerpublic void testRunEnded(long elapsedTime,
Map<String,String> runMetrics)
testRunEnded in interface com.android.ddmlib.testrunner.ITestRunListenertestRunEnded in class com.android.ddmlib.testrunner.XmlTestRunListenerprotected File getResultFile(File reportDir)
File where the report will be created. Instead of creating a temp file,
create a file with the devices serial number, so it's possible to refer back to it afterwards.getResultFile in class com.android.ddmlib.testrunner.XmlTestRunListenerreportDir - the root directory of the report.IOException