Wraps a test case with setUp and tearDown function. [詳細]
#include <CCUnitTestCase.h>

変数 | |
| CCUnitTest | test |
| super class | |
| const char * | name |
| test case name | |
| CCUnitTestFunc * | setUpBeforeClass |
| setUp for a case | |
| CCUnitTestFunc * | tearDownAfterClass |
| tearDown for a case | |
| CCUnitTestFunc * | setUp |
| setUp for each tests | |
| CCUnitTestFunc * | tearDown |
| tearDown for each tests | |
| CCUnitList | testFuncs |
| test functions | |
Wraps a test case with setUp and tearDown function.
A TestCase is used to provide a common environment for a set of test cases.
To define a test case, do the following:
Each test runs in its own case so there can be no side effects among test runs. Here is an example:
For each test implement a function which interacts with the case. Verify the expected results with assertions specified by calling CCUNIT_ASSERT on the expression you want to test:
The tests to be run can be collected into a TestSuite.
Once the functions are defined you can run them. To do this, use a TestRunner.
A command line tool have been created for convenience. It is located in src/tools/ccunit_makeSuite.c.
| const char* CCUnitTestCase::name |
test case name
参照元 ccunit_newTestCase(), と destroy().
| CCUnitTestFunc* CCUnitTestCase::setUp |
setUp for each tests
参照元 ccunit_addTestFunc(), destroy(), と run().
| CCUnitTestFunc* CCUnitTestCase::setUpBeforeClass |
setUp for a case
参照元 ccunit_addTestFunc(), destroy(), と run().
| CCUnitTestFunc* CCUnitTestCase::tearDown |
tearDown for each tests
参照元 ccunit_addTestFunc(), destroy(), と run().
| CCUnitTestFunc* CCUnitTestCase::tearDownAfterClass |
tearDown for a case
参照元 ccunit_addTestFunc(), destroy(), と run().
| CCUnitTest CCUnitTestCase::test |
super class
参照元 ccunit_addTestCase(), ccunit_deleteTestCase(), ccunit_newTestCase(), と ccunit_runTestCase().
| CCUnitList CCUnitTestCase::testFuncs |
test functions
参照元 ccunit_addTestFunc(), ccunit_newTestCase(), destroy(), と run().
|
|
hosts this site. | Send comments to: CCUnit Developer |
CCUnitに対してSat Jul 13 2013 15:09:26に生成されました。
1.8.1.1
|