FilteredResultForwarder

public class FilteredResultForwarder
extends ResultForwarder

java.lang.Object
com.android.tradefed.result.ResultForwarder
  com.android.tradefed.result.FilteredResultForwarder


ResultForwarder の許可リストのみを 報告できる TestDescription のバリアント。

概要

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

FilteredResultForwarder(Collection<TestDescription> allowedTests, ITestInvocationListener... listeners)

パブリック メソッド

void testAssumptionFailure(TestDescription test, FailureDescription failure)

アトミック テストが、誤った条件を想定していることを示す場合に呼び出されます。

void testAssumptionFailure(TestDescription test, String trace)

アトミック テストが、誤った条件を想定していることを示す場合に呼び出されます。

void testEnded(TestDescription test, long endTime, Map<String, String> testMetrics)
void testEnded(TestDescription test, long endTime, HashMap<String, MetricMeasurement.Metric> testMetrics)

終了時刻を直接指定できる testEnded(TestDescription,Map) の代替。

void testEnded(TestDescription test, Map<String, String> testMetrics)
void testEnded(TestDescription test, HashMap<String, MetricMeasurement.Metric> testMetrics)

個々のテストケースの実行終了を報告します。

void testFailed(TestDescription test, FailureDescription failure)

個々のテストケースの失敗を報告します。

void testFailed(TestDescription test, String trace)

個々のテストケースの失敗を報告します。

void testIgnored(TestDescription test)

テストが実行されない場合に呼び出されます。通常、テストメソッドに org.junit.Ignore. のアノテーションが付けられていることが原因です。

void testStarted(TestDescription test, long startTime)

テストの開始時刻も指定する testStarted(TestDescription) の代替。正確な測定を行うために testEnded(TestDescription,long,Map) と組み合わせます。

void testStarted(TestDescription test)

個々のテストケースの開始を報告します。

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

FilteredResultForwarder

public FilteredResultForwarder (Collection<TestDescription> allowedTests, 
                ITestInvocationListener... listeners)

パラメータ
allowedTests Collection

listeners ITestInvocationListener

パブリック メソッド

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

アトミック テストが、誤った条件を想定していることを示す場合に呼び出されます。

パラメータ
test TestDescription: テストを識別します。

failure FailureDescription: 失敗とそのコンテキストを記述する FailureDescription

testAssumptionFailure

public void testAssumptionFailure (TestDescription test, 
                String trace)

アトミック テストが、誤った条件を想定していることを示す場合に呼び出されます。

パラメータ
test TestDescription: テストを識別します。

trace String: 失敗のスタック トレース。

testEnded

public void testEnded (TestDescription test, 
                long endTime, 
                Map<String, String> testMetrics)

パラメータ
test TestDescription

endTime long

testMetrics Map

testEnded

public void testEnded (TestDescription test, 
                long endTime, 
                HashMap<String, MetricMeasurement.Metric> testMetrics)

終了時刻を直接指定できる testEnded(TestDescription,Map) の代替。正確な測定を行うために testStarted(TestDescription,long) と組み合わせます。

パラメータ
test TestDescription: テストを識別します。

endTime long: テストが終了した時刻。System.currentTimeMillis() で測定されます。

testMetrics HashMap: 出力された指標の Map

testEnded

public void testEnded (TestDescription test, 
                Map<String, String> testMetrics)

パラメータ
test TestDescription

testMetrics Map

testEnded

public void testEnded (TestDescription test, 
                HashMap<String, MetricMeasurement.Metric> testMetrics)

個々のテストケースの実行終了を報告します。

testFailed(TestDescription, FailureDescription) が呼び出されなかった場合、このテストは合格しています。また、テストケースの実行中に出力された Key-Value 指標も返します。

パラメータ
test TestDescription: テストを識別します。

testMetrics HashMap: 出力された指標の Map

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

個々のテストケースの失敗を報告します。

testStarted と testEnded の間に呼び出されます。

パラメータ
test TestDescription: テストを識別します。

failure FailureDescription: 失敗とそのコンテキストを記述する FailureDescription

testFailed

public void testFailed (TestDescription test, 
                String trace)

個々のテストケースの失敗を報告します。

testStarted と testEnded の間に呼び出されます。

パラメータ
test TestDescription: テストを識別します。

trace String: 失敗のスタック トレース。

testIgnored

public void testIgnored (TestDescription test)

テストが実行されない場合に呼び出されます。通常、テストメソッドに org.junit.Ignore のアノテーションが付けられていることが原因です。

パラメータ
test TestDescription: テストを識別します。

testStarted

public void testStarted (TestDescription test, 
                long startTime)

テストの開始時刻も指定する testStarted(TestDescription) の代替。正確な測定を行うために testEnded(TestDescription,long,Map) と組み合わせます。

パラメータ
test TestDescription: テストを識別します。

startTime long: テストが開始した時刻。System.currentTimeMillis() で測定されます。

testStarted

public void testStarted (TestDescription test)

個々のテストケースの開始を報告します。古いインターフェースです。可能な限り testStarted(TestDescription) を使用してください。

パラメータ
test TestDescription: テストを識別します。