JavaCodeCoverageCollector
public
final
class
JavaCodeCoverageCollector
extends BaseDeviceMetricCollector
implements
IConfigurationReceiver
Objeto java.lang. | ||
↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | |
↳ | com.android.tradefed.device.metric.JavaCodeCoverageCollector |
Un BaseDeviceMetricCollector
que extraerá Java
medidas de cobertura fuera del dispositivo
y registrarlas como artefactos de prueba.
Resumen
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
|
Constructores públicos | |
---|---|
JavaCodeCoverageCollector()
|
Métodos públicos | |
---|---|
void
|
extraInit(IInvocationContext context, ITestInvocationListener listener)
|
void
|
onTestRunEnd(DeviceMetricData runData,
Es la devolución de llamada cuando finaliza una ejecución de prueba. |
void
|
setConfiguration(IConfiguration configuration)
Inserta el |
Campos
COMPRESS_COVERAGE_FILES
public static final String COMPRESS_COVERAGE_FILES
DIRECTORIO_COBERTURA
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
Constructores públicos
JavaCodeCoverageCollector
public JavaCodeCoverageCollector ()
Métodos públicos
extraInit
public void extraInit (IInvocationContext context, ITestInvocationListener listener)
Arroja | |
---|---|
DeviceNotAvailableException |
On de ejecución de prueba
public void onTestRunEnd (DeviceMetricData runData,runMetrics)
Es la devolución de llamada cuando finaliza una ejecución de prueba. Este debe ser el momento de la limpieza.
Parámetros | |
---|---|
runData |
DeviceMetricData : Es el DeviceMetricData que contiene los datos de la ejecución. Será igual
que en BaseDeviceMetricCollector.onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData) . |
runMetrics |
: Es el mapa actual de métricas que se pasan a ERROR(/#testRunEnded(long,Map)) . |
Arroja | |
---|---|
DeviceNotAvailableException |
setConfiguration
public void setConfiguration (IConfiguration configuration)
Inserta el IConfiguration
en uso.
Parámetros | |
---|---|
configuration |
IConfiguration |