CountingTestResultListener

public class CountingTestResultListener
extends TestResultListener

java.lang.Object
com.android.tradefed.result.TestResultListener
com.android.tradefed.result.CountingTestResultListener


TestStatusによってテストの総数を追跡するTestResultListener

まとめ

パブリック コンストラクター

CountingTestResultListener ()

公開メソッド

int[] getResultCounts ()

PASSED、INCOMPLETE、IGNORED などのテストの数を返します。

int getTotalTests ()

実行されたテストの総数を返します。

boolean hasFailedTests ()

失敗 (Incomplete、AssumptionFailure、Failure のいずれか) があるかどうかを判断するヘルパー メソッド。

void testResult ( TestDescription test, TestResult result)

パブリック コンストラクター

CountingTestResultListener

public CountingTestResultListener ()

公開メソッド

getResultCounts

public int[] getResultCounts ()

PASSED、INCOMPLETE、IGNORED などのテストの数を返します。

戻り値
int[]各ステータスのテスト数を格納する、TestStatus.ordinal() によってインデックス付けされた配列

getTotalTests

public int getTotalTests ()

実行されたテストの総数を返します。

戻り値
int

hasFailedTests

public boolean hasFailedTests ()

失敗 (Incomplete、AssumptionFailure、Failure のいずれか) があるかどうかを判断するヘルパー メソッド。

戻り値
boolean

テスト結果

public void testResult (TestDescription test, 
                TestResult result)

パラメーター
test TestDescription

result TestResult