JavaCodeCoverageCollector
public final class JavaCodeCoverageCollector
extends BaseDeviceMetricCollector
implements IConfigurationReceiver
java.lang.Object | ||
↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | |
↳ | com.android.tradefed.device.metric.JavaCodeCoverageCollector |
Um BaseDeviceMetricCollector
que extrairá medições de cobertura Java do dispositivo e as registrará como artefatos de teste.
Resumo
Campos | |
---|---|
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
|
Construtores públicos | |
---|---|
JavaCodeCoverageCollector () |
Métodos públicos | |
---|---|
void | extraInit ( IInvocationContext context, ITestInvocationListener listener) |
void | onTestRunEnd ( DeviceMetricData runData, runMetrics) onTestRunEnd ( DeviceMetricData runData, runMetrics) Retorno de chamada quando uma execução de teste é encerrada. |
void | setConfiguration ( IConfiguration configuration) Injeta o |
Campos
COMPRESS_COVERAGE_FILES
public static final String COMPRESS_COVERAGE_FILES
COVERAGE_DIRECTORY
public static final String COVERAGE_DIRECTORY
COVERAGE_MEASUREMENT_KEY
public static final String COVERAGE_MEASUREMENT_KEY
FIND_COVERAGE_FILES
public static final String FIND_COVERAGE_FILES
MERGE_COVERAGE_MEASUREMENTS_TEST_NAME
public static final String MERGE_COVERAGE_MEASUREMENTS_TEST_NAME
Construtores públicos
JavaCodeCoverageCollector
public JavaCodeCoverageCollector ()
Métodos públicos
extraInit
public void extraInit (IInvocationContext context, ITestInvocationListener listener)
Lança | |
---|---|
DeviceNotAvailableException |
onTestRunEnd
public void onTestRunEnd (DeviceMetricData runData,runMetrics)
Retorno de chamada quando uma execução de teste é encerrada. Este deve ser o momento da limpeza.
Parâmetros | |
---|---|
runData | DeviceMetricData : o DeviceMetricData que contém os dados da execução. Será o mesmo objeto de BaseDeviceMetricCollector.onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData) . |
runMetrics | ERROR(/#testRunEnded(long,Map)) . |
Lança | |
---|---|
DeviceNotAvailableException |
setConfiguração
public void setConfiguration (IConfiguration configuration)
Injeta o IConfiguration
em uso.
Parâmetros | |
---|---|
configuration | IConfiguration |