代码覆盖率测试

public class CodeCoverageTest
extends InstrumentationTest

java.lang.Object
com.android.tradefed.testtype.InstrumentationTest
com.android.tradefed.testtype.CodeCoverageTest


在给定设备上运行仪器测试包并生成代码覆盖率报告的测试。需要艾玛仪表应用程序。

概括

领域

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 TestInformationTestInformation对象包含运行测试的有用信息。

listener ITestInvocationListener :测试结果的ITestInvocationListener

投掷
DeviceNotAvailableException