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.XmlTestRunListener
public void testRunStarted(String runName, int testCount)
testRunStarted
in interface com.android.ddmlib.testrunner.ITestRunListener
testRunStarted
in class com.android.ddmlib.testrunner.XmlTestRunListener
public void testRunFailed(String errorMessage)
testRunFailed
in interface com.android.ddmlib.testrunner.ITestRunListener
testRunFailed
in class com.android.ddmlib.testrunner.XmlTestRunListener
public void testRunEnded(long elapsedTime, Map<String,String> runMetrics)
testRunEnded
in interface com.android.ddmlib.testrunner.ITestRunListener
testRunEnded
in class com.android.ddmlib.testrunner.XmlTestRunListener
protected 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.XmlTestRunListener
reportDir
- the root directory of the report.IOException