#include <TestSuite.h>
Inheritance diagram for cppunit::TestSuite::

Public Methods | |
| TestSuite (const char *name="") | |
| コンストラクタ。. More... | |
| virtual | ~TestSuite () |
| 保有する Test を全て削除する。 Deletes all tests in the suite. More... | |
| virtual void | run (TestResult *result) |
| テストを実行し、結果を集める。 Run the test, collecting results. More... | |
| virtual int | countTestCases () const |
| テストケースの個数を返す。 Return the number of test cases invoked by run(). More... | |
| virtual const char * | getName () const |
| テストの名前を返す。 Returns the test name. More... | |
| virtual cu_String | toString () const |
| 文字列に変換する。 Description of the test, for diagnostic output. More... | |
| void | addTest (Test *test) |
| テストを追加する。 Adds a test to the suite. More... | |
It runs a collection of test cases.
Here is an example:
Test* suite = new TestSuite("MathTest");
suite->addTest(new TEST_CALLER(MathTest, testAdd));
suite->addTest(new TEST_CALLER(MathTest, testDivideByZero));
Note that TestSuites assume lifetime control for any tests added to them.
|
|
コンストラクタ。.
|
|
|
保有する Test を全て削除する。
|
|
|
テストを実行し、結果を集める。
Reimplemented from cppunit::Test. |
|
|
テストケースの個数を返す。
The base unit of testing is the class TestCase. Reimplemented from cppunit::Test. |
|
|
テストの名前を返す。 Each test has a name. This name may be used to find the test in a suite of tests. Reimplemented from cppunit::Test. |
|
|
文字列に変換する。
The test description will typically include the test name, but may have additional description. Reimplemented from cppunit::Test. |
|
|
テストを追加する。
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001