JavaCodeCakupanCollector
public
final
class
JavaCodeCoverageCollector
extends BaseDeviceMetricCollector
implements
IConfigurationReceiver
java.lang.Object | ||
↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | |
↳ | com.android.tradefed.device.metric.JavaCodeCoverageCollector |
BaseDeviceMetricCollector
yang akan menarik Java
pengukuran cakupan dari perangkat dan
mencatatnya sebagai artefak pengujian.
Ringkasan
Kolom | |
---|---|
public
static
final
String |
COMPRESS_COVERAGE_FILES
|
public
static
final
String |
COVERAGE_DIRECTORY
|
public
static
final
String |
COVERAGE_MEASUREMENT_KEY
|
public
static
final
String |
FIND_COVERAGE_FILES
|
public
static
final
String |
MERGE_COVERAGE_MEASUREMENTS_TEST_NAME
|
Konstruktor publik | |
---|---|
JavaCodeCoverageCollector()
|
Metode publik | |
---|---|
void
|
extraInit(IInvocationContext context, ITestInvocationListener listener)
|
void
|
onTestRunEnd(DeviceMetricData runData,
Callback saat pengujian yang dijalankan berakhir. |
void
|
setConfiguration(IConfiguration configuration)
Memasukkan |
Kolom
FILE_COVERAGE_COMPRESS
public static final String COMPRESS_COVERAGE_FILES
COVERAGE_DIRECTORY
public static final String COVERAGE_DIRECTORY
KUNCI_MEASUREMENT_COVERAGE
public static final String COVERAGE_MEASUREMENT_KEY
FIND_COVERAGE_FILES
public static final String FIND_COVERAGE_FILES
MER_COVERAGE_MEASUREMENTS_TEST_NAME
public static final String MERGE_COVERAGE_MEASUREMENTS_TEST_NAME
Konstruktor publik
JavaCodeCakupanCollector
public JavaCodeCoverageCollector ()
Metode publik
ekstraInit
public void extraInit (IInvocationContext context, ITestInvocationListener listener)
Menampilkan | |
---|---|
DeviceNotAvailableException |
onTestRunEnd
public void onTestRunEnd (DeviceMetricData runData,runMetrics)
Callback saat pengujian yang dijalankan berakhir. Inilah saatnya untuk melakukan pembersihan.
Parameter | |
---|---|
runData |
DeviceMetricData : DeviceMetricData yang menyimpan data untuk dijalankan. Akan sama
selama BaseDeviceMetricCollector.onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData) . |
runMetrics |
: peta metrik saat ini yang diteruskan ke ERROR(/#testRunEnded(long,Map)) . |
Menampilkan | |
---|---|
DeviceNotAvailableException |
setConfiguration
public void setConfiguration (IConfiguration configuration)
Memasukkan IConfiguration
yang digunakan.
Parameter | |
---|---|
configuration |
IConfiguration |