to top
public class

CodeCoverageTest

extends InstrumentationTest
@OptionClass(alias = "code-coverage")
java.lang.Object
   ↳ com.android.tradefed.testtype.InstrumentationTest
     ↳ com.android.tradefed.testtype.CodeCoverageTest

Class Overview

A Test that runs an instrumentation test package on a given device and generates the code coverage report. Requires an emma instrumented application.

Summary

[Expand]
Inherited Constants
From class com.android.tradefed.testtype.InstrumentationTest
Fields
private String mCoverageFile @Option(name = "coverage-file", description = "Optional custom emma coverage file path. If unspecified, will use package name.")
[Expand]
Inherited Fields
From class com.android.tradefed.testtype.InstrumentationTest
Public Constructors
CodeCoverageTest()
Public Methods
void run(ITestInvocationListener listener)
Runs the tests, and reports result to the listener.
[Expand]
Inherited Methods
From class com.android.tradefed.testtype.InstrumentationTest
From class java.lang.Object
From interface com.android.tradefed.testtype.IDeviceTest
From interface com.android.tradefed.testtype.IResumableTest
From interface com.android.tradefed.testtype.IRemoteTest

Fields

private String mCoverageFile

Public Constructors

public CodeCoverageTest ()

Public Methods

public void run (ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
listener the ITestInvocationListener of test results