Coleccionista de cobertura de código Java
public final class JavaCodeCoverageCollector
extends BaseDeviceMetricCollector
implements IConfigurationReceiver
java.lang.Objeto | ||
↳ | com.android.tradefed.device.metric.BaseDeviceMetricCollector | |
↳ | com.android.tradefed.device.metric.JavaCodeCoverageCollector |
Un BaseDeviceMetricCollector
que extraerá las mediciones de cobertura de Java del dispositivo y las registrará 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, runMetrics) onTestRunEnd ( DeviceMetricData runData, runMetrics) Devolución de llamada cuando finaliza una ejecución de prueba. |
void | setConfiguration ( IConfiguration configuration) Inyecta la |
Campos
COMPRESS_COVERAGE_FILES
public static final String COMPRESS_COVERAGE_FILES
COBERTURA_DIRECTORIO
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
Coleccionista de cobertura de código Java
public JavaCodeCoverageCollector ()
Métodos públicos
inicio extra
public void extraInit (IInvocationContext context, ITestInvocationListener listener)
Lanza | |
---|---|
DeviceNotAvailableException |
enTestRunEnd
public void onTestRunEnd (DeviceMetricData runData,runMetrics)
Devolución de llamada cuando finaliza una ejecución de prueba. Este debería ser el momento de limpiar.
Parámetros | |
---|---|
runData | DeviceMetricData : DeviceMetricData que contiene los datos para la ejecución. Será el mismo objeto que durante BaseDeviceMetricCollector.onTestRunStart(com.android.tradefed.device.metric.DeviceMetricData) . |
runMetrics | ERROR(/#testRunEnded(long,Map)) . |
Lanza | |
---|---|
DeviceNotAvailableException |
establecer configuración
public void setConfiguration (IConfiguration configuration)
Inyecta la IConfiguration
en uso.
Parámetros | |
---|---|
configuration | IConfiguration |