CCUnit project page | CCUnit home page |
Data Structures | |
struct | CCUnitTestSuite |
A Composite class of Tests. More... | |
Typedefs | |
typedef CCUnitTestSuite | CCUnitTestSuite |
A Composite class of Tests. | |
Functions | |
int | ccunit_makeSuite (int ac, char **av) |
Generate a code to creating test suite code from the test case source codes. | |
int | ccunit_va_makeSuite (const char *prg,...) |
Generate a code to creating test suite code from the test case source codes. | |
CCUnitTestSuite * | ccunit_newTestSuite (const char *name) |
Constructs an empty TestSuite. | |
void | ccunit_deleteTestSuite (CCUnitTestSuite *suite) |
Destructs test suite. | |
void | ccunit_addTest (CCUnitTestSuite *suite, CCUnitTest *test) |
Adds a test to the suite. | |
void | ccunit_addTestSuite (CCUnitTestSuite *suite, CCUnitTestSuite *testSuite) |
Adds a test suite to the suite. | |
void | ccunit_addTestFixture (CCUnitTestSuite *suite, CCUnitTestFixture *fixture) |
Adds a test fixture to the suite. | |
CCUnitTestSuite * | ccunit_suite (const char *name) |
Create a test suite from test source file. | |
int | main (int ac, char **av) |
To generate a test suite making source code. |
|
A It runs a collection of test cases. Here is an example.
CCUnitTestSuite* suite = ccunit_newTestSuite (); ccunit_addTestCase (suite, TESTCASE_1); ccunit_addTestCase (suite, TESTCASE_2);
|
|
Adds a test to the suite.
|
|
Adds a test fixture to the suite.
|
|
Adds a test suite to the suite.
|
|
Destructs test suite.
|
|
Generate a code to creating test suite code from the test case source codes. The following are pseudo-BNF of requiring test case source:
SOURCEFILE ::= FIXTURE... FIXTURE ::= FIXTURE_HEADER [FIXTURE_CODE]... [SETUP_FUNC] [TEARDOWN_FUNC] [TESTCASE]... FIXTURE_END FIXTURE_HEADER ::= JAVADOC_COMMENT_BEGIN 'test case:' TESTFIXTURE_NAME COMMENT_END FIXTURE_CODE ::= any C language codes. SETUP_FUNC ::= [ FUNC_DESC ] 'void setUp'[A-Za-z0-9_]* '()' FUNC_BODY FUNC_DESC ::= JAVADOC_COMMENT_BEGIN string COMMENT_END FUNC_BODY ::= '{' C language codes... '}' TEARDOWN_FUNC ::= [ FUNC_DESC ] 'void tearDown'[A-Za-z0-9_]* '()' FUNC_BODY TESTCASE ::= [ FUNC_DESC ] 'void test'[A-Za-z0-9_]* '()' FUNC_BODY FUXTURE_END ::= JAVADOC_COMMENT_BEGIN 'end test case' wsp string COMMENT_END JAVADOC_COMMENT_BEGIN ::= '/' '*' '*' COMMENT_END ::= '*' '/'
av[] = { PRORGNAME, [OPTIONS]..., FILES... } OPTIONS: --output OUTFILE -o OUTFILE output file name (default stdout) --function FUNCTION -f FUNCTION creating function name --verbose -v output verbose message --debug -d output debug message --version -V print version --help -h print this message
|
|
Constructs an empty TestSuite.
|
|
Create a test suite from test source file.
|
|
Generate a code to creating test suite code from the test case source codes.
|
|
To generate a test suite making source code.
|
|
hosts this site. |
Send comments to: CCUnit Developer |