CodeCoverageTest
public
class
CodeCoverageTest
extends InstrumentationTest
java.lang.Object | ||
↳ | com.android.tradefed.testtype.InstrumentationTest | |
↳ | com.android.tradefed.testtype.CodeCoverageTest |
在给定设备上运行插桩测试软件包并生成代码覆盖率报告的测试。需要 emma 插桩应用。
摘要
字段 | |
---|---|
public
static
final
String |
COVERAGE_REMOTE_FILE_LABEL
|
公共构造函数 | |
---|---|
CodeCoverageTest()
|
公共方法 | |
---|---|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
运行测试并向监听器报告结果。 |
字段
COVERAGE_REMOTE_FILE_LABEL
public static final String COVERAGE_REMOTE_FILE_LABEL
公共构造函数
CodeCoverageTest
public CodeCoverageTest ()
公共方法
得分
public void run (TestInformation testInfo, ITestInvocationListener listener)
运行测试并向监听器报告结果。
参数 | |
---|---|
testInfo |
TestInformation :包含运行测试的实用信息的 TestInformation 对象。 |
listener |
ITestInvocationListener :测试结果的 ITestInvocationListener |
抛出 | |
---|---|
DeviceNotAvailableException |