hi
i'm trying to figure out how to make a hierachy of tests, to get a tree structure displayed in the TreeHierarchyDlg ( i use MFC ).
it appears that i have to use test suites and register them with some macro, but which?
i would like a structure like this:
+ all tests
+ testsuiteA
| + testcase1
| + testcase2
+ testsuiteB
+ testsuiteC
| + testcase1c
| + testcase2c
+ testsuiteD
| + test case1d
+ testcase1b
etc..
how can that be done ?-
thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
cppunit-1.12.0.tar.gz
See unit tests of cppunit: cppunit-1.12.0/examples/cppunittest/CppUnitTestSuite.cpp
./CppUnitTestMain
Running
StringToolsTest::testToStringInt : OK
StringToolsTest::testToStringDouble : OK
...
XmlUniformiserTest::testElementsHierarchyWithContents : OK
XmlUniformiserTest::testAssertXmlEqual : OK
OK (220)
./CppUnitTestMain "/All Tests"
OK (220)
./CppUnitTestMain "/All Tests/UnitTestTool"
OK (12)
./CppUnitTestMain "/All Tests/UnitTestTool/XmlUniformiserTest"
OK (12)
./CppUnitTestMain "XmlUniformiserTest"
OK (12)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi
i'm trying to figure out how to make a hierachy of tests, to get a tree structure displayed in the TreeHierarchyDlg ( i use MFC ).
it appears that i have to use test suites and register them with some macro, but which?
i would like a structure like this:
+ all tests
+ testsuiteA
| + testcase1
| + testcase2
+ testsuiteB
+ testsuiteC
| + testcase1c
| + testcase2c
+ testsuiteD
| + test case1d
+ testcase1b
etc..
how can that be done ?-
thanks.
cppunit-1.12.0.tar.gz
See unit tests of cppunit: cppunit-1.12.0/examples/cppunittest/CppUnitTestSuite.cpp
./CppUnitTestMain
Running
StringToolsTest::testToStringInt : OK
StringToolsTest::testToStringDouble : OK
...
XmlUniformiserTest::testElementsHierarchyWithContents : OK
XmlUniformiserTest::testAssertXmlEqual : OK
OK (220)
./CppUnitTestMain "/All Tests"
OK (220)
./CppUnitTestMain "/All Tests/UnitTestTool"
OK (12)
./CppUnitTestMain "/All Tests/UnitTestTool/XmlUniformiserTest"
OK (12)
./CppUnitTestMain "XmlUniformiserTest"
OK (12)