CountingTestResultListener
public class CountingTestResultListener
extends TestResultListener
java.lang.Object | ||
↳ | com.android.tradefed.result.TestResultListener | |
↳ | com.android.tradefed.result.CountingTestResultListener |
Um TestResultListener
que rastreia o número total de testes por TestStatus
Resumo
Construtoras públicas | |
---|---|
CountingTestResultListener () |
Métodos públicos | |
---|---|
int[] | getResultCounts () Retorna o número de testes PASSADOS, INCOMPLETOS, IGNORADOS, etc. |
int | getTotalTests () Retorna o número total de testes executados. |
boolean | hasFailedTests () Método auxiliar para determinar se há algum resultado de falha (um de Incomplete, AssumptionFailure, Failure). |
void | testResult (TestDescription test, TestResult result) |
Construtoras públicas
CountingTestResultListener
public CountingTestResultListener ()
Métodos públicos
getResultCounts
public int[] getResultCounts ()
Retorna o número de testes PASSADOS, INCOMPLETOS, IGNORADOS, etc.
Devoluções | |
---|---|
int[] | uma matriz, indexada por TestStatus.ordinal (), que armazena o número de testes com cada status |
getTotalTests
public int getTotalTests ()
Retorna o número total de testes executados.
Devoluções | |
---|---|
int |
hasFailedTests
public boolean hasFailedTests ()
Método auxiliar para determinar se há algum resultado de falha (um de Incomplete, AssumptionFailure, Failure).
Devoluções | |
---|---|
boolean |
resultado do teste
public void testResult (TestDescription test, TestResult result)
Parâmetros | |
---|---|
test | TestDescription |
result | TestResult |