#include <TestResult.h>
Public Methods | |
TestResult (Mutex *mutex=0) | |
コンストラクタ。. More... | |
~TestResult () | |
デストラクタ。. More... | |
void | addListener (TestListener *listener) |
リスナを追加する。. More... | |
void | startTest (Test *test) |
テストを開始する。 Informs the result that a test will be started. More... | |
void | endTest (Test *test) |
テストが終了した。 Informs the result that a test was completed. More... | |
void | addFailure (const TestFailure *failure) |
テストの失敗を追加する。 Adds a failure to the list of failures. More... | |
void | addError (const TestFailure *error) |
エラーを追加する。 Adds an error to the list of errors. More... | |
int | runCount () const |
実行されたテストの個数を返す。 Gets the number of run tests. More... | |
int | failureCount () const |
失敗したテストの個数を返す。 Gets the number of detected failures. More... | |
int | errorCount () const |
エラーになったテストの個数を返す。 Gets the number of detected errors. More... | |
bool | wasSuccessful () const |
一連のテストが成功したか? Returns whether the entire test was successful or not. More... | |
bool | shouldStop () const |
テストを中止する必要があるか? Returns whether testing should be stopped. More... | |
void | stop () |
テストを中止する。 Stop testing. More... | |
const cu_List & | failures () const |
失敗したテストのリストを返す。 Returns a list of the failures. More... | |
const cu_List & | errors () const |
エラーのリストを返す。 Returns a list of the errors. More... |
It is an instance of the Collecting Parameter pattern.
The test framework distinguishes between failures and errors.
A failure is anticipated and checked for with assertions.
Errors are unanticipated problems signified by exceptions that are not generated by the framework.
保有する TestFailure のライフサイクルを管理する。
TestListener のライフサイクルはクライアント側で管理すること。
|
コンストラクタ。.
|
|
デストラクタ。.
|
|
リスナを追加する。. ※テスト実行中は使用しないこと。 |
|
テストを開始する。
|
|
テストが終了した。
|
|
テストの失敗を追加する。
|
|
エラーを追加する。
|
|
実行されたテストの個数を返す。
|
|
失敗したテストの個数を返す。
|
|
エラーになったテストの個数を返す。
|
|
一連のテストが成功したか?
|
|
テストを中止する必要があるか?
|
|
テストを中止する。
|
|
失敗したテストのリストを返す。 ※テスト実行中は使用しないこと。 |
|
エラーのリストを返す。 ※テスト実行中は使用しないこと。 |