#include <TestRunner.h>
Public Methods | |
| TestRunner () | |
| コンストラクタ。. More... | |
| ~TestRunner () | |
| デストラクタ。. More... | |
| void | addTest (Test *test) |
| テストを追加する。. More... | |
| void | addTest (const char *name, Test *test) |
| テストを追加する。. More... | |
| int | run (int argc, char *argv[]) |
| テストを実行する。. More... | |
Protected Methods | |
| int | parseArgs (int argc, char *argv[]) |
| コマンドライン引数を解析する。. More... | |
| int | runTests () |
| テストを実行する。. More... | |
| void | wait () |
| キーボードからの入力を待つ。. More... | |
| void | printUsage (const char *command) const |
| 使用法を表示する。. More... | |
| void | printResult (const TestResult &result) const |
| テスト結果を表示する。. More... | |
| void | printHeader (const TestResult &result) const |
| テスト結果のヘッダを表示する。. More... | |
| void | printFailures (const cu_List &failures) const |
| 失敗したテストのリストを表示する。. More... | |
| void | printErrors (const cu_List &errors) const |
| エラーのリストを表示する。. More... | |
The test runner manage the life cycle of the added tests.
TestRunner prints out a trace as the tests are executed followed by a summary at the end.
Here is an example:
class ATestCase : public TestCase { ... };
int main(int argc, char* argv[]) {
TestRunner runner;
runner.addTest("ATestCase", new ATestCase("ATestCase"));
return runner.run(argc, argv);
}
|
|
コンストラクタ。.
|
|
|
デストラクタ。.
|
|
|
テストを追加する。.
|
|
||||||||||||
|
テストを追加する。.
|
|
||||||||||||
|
テストを実行する。.
|
|
||||||||||||
|
コマンドライン引数を解析する。.
|
|
|
テストを実行する。.
|
|
|
キーボードからの入力を待つ。.
|
|
|
使用法を表示する。.
|
|
|
テスト結果を表示する。.
|
|
|
テスト結果のヘッダを表示する。.
|
|
|
失敗したテストのリストを表示する。.
|
|
|
エラーのリストを表示する。.
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001