CodeCoverageTest
public
class
CodeCoverageTest
extends InstrumentationTest
| java.lang.Object | ||
| ↳ | com.android.tradefed.testtype.InstrumentationTest | |
| ↳ | com.android.tradefed.testtype.CodeCoverageTest | |
這項測試會在指定裝置上執行檢測設備測試套件,並產生程式碼涵蓋率報告。必須使用已插碼的 emma 應用程式。
摘要
常數 | |
|---|---|
String |
COVERAGE_REMOTE_FILE_LABEL
|
公用建構函式 | |
|---|---|
CodeCoverageTest()
|
|
公用方法 | |
|---|---|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Runs the tests, and reports result to the listener. |
常數
COVERAGE_REMOTE_FILE_LABEL
public static final String COVERAGE_REMOTE_FILE_LABEL
常數值: "coverageFilePath"
公用建構函式
CodeCoverageTest
public CodeCoverageTest ()
公用方法
得分
public void run (TestInformation testInfo, ITestInvocationListener listener)
執行測試,並向接聽程式回報結果。
| 參數 | |
|---|---|
testInfo |
TestInformation:包含執行測試的實用資訊的 TestInformation 物件。 |
listener |
ITestInvocationListener:測試結果的 ITestInvocationListener |
| 擲回 | |
|---|---|
DeviceNotAvailableException |
|