代码覆盖测试
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
公共构造函数
代码覆盖测试
public CodeCoverageTest ()
公共方法
跑步
public void run (TestInformation testInfo, ITestInvocationListener listener)
运行测试,并将结果报告给侦听器。
参数 | |
---|---|
testInfo | TestInformation :包含运行测试的有用信息的TestInformation 对象。 |
listener | ITestInvocationListener : 测试结果的ITestInvocationListener |
投掷 | |
---|---|
DeviceNotAvailableException |