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