ConsoleResultReporter
public class ConsoleResultReporter
extends TestResultListener
implements ILogSaverListener, ITestInvocationListener
テスト結果をコンソールに出力する結果レポーター。
各テスト実行、各テストケース、テストメトリック、テストログ、およびテストファイルの場所を出力します。
概要
パブリックコンストラクター
ConsoleResultReporter
public ConsoleResultReporter ()
パブリックメソッド
invocationEnded
public void invocationEnded (long elapsedTime)
invocationStarted
public void invocationStarted (IInvocationContext context)
パラメーター |
---|
context | IInvocationContext |
logAssociation
public void logAssociation (String dataName,
LogFile logFile)
パラメーター |
---|
dataName | String |
logFile | LogFile |
public void testLogSaved (String dataName,
LogDataType dataType,
InputStreamSource dataStream,
LogFile logFile)
パラメーター |
---|
dataName | String |
dataType | LogDataType |
dataStream | InputStreamSource |
logFile | LogFile |
テスト結果
public void testResult (TestDescription test,
TestResult result)
パラメーター |
---|
test | TestDescription |
result | TestResult |
testRunEnded
public void testRunEnded (long elapsedTimeMillis,
metrics)
パラメーター |
---|
elapsedTimeMillis | long |
metrics | |
testRunFailed
public void testRunFailed (FailureDescription failure)
パラメーター |
---|
failure | FailureDescription |
testRunFailed
public void testRunFailed (String errorMessage)
パラメーター |
---|
errorMessage | String |
testRunStarted
public void testRunStarted (String runName,
int testCount)
パラメーター |
---|
runName | String |
testCount | int |