diff options
author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-04-12 18:28:48 +0000 |
---|---|---|
committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-04-12 18:28:48 +0000 |
commit | ed406a2966e62072fa6afaca8abc578db7c0c9fb (patch) | |
tree | ab8d2ffb462c3c955b2e339e8cc19f1a6be8bd0f /TODO | |
parent | fc9c76622b19adfcdebce682d9d49db8fb9336ef (diff) | |
download | cppunit-ed406a2966e62072fa6afaca8abc578db7c0c9fb.tar.gz |
Makefile.
Makefile.am: added examples/qt to tar ball release.
* TODO: heavily updated.
* contrib/msvc/CppUnit*.wwtpl: changed base class for unit test to TestFixture.
* include/cppunit/Test.h: removed toString() method. Not used by the framework
and source of confusions with getName().
Added getChildTestCount() and getChildTestAt(), introducing the composite pattern
at top level. Added utility methods findTest() and findTestPath().
* src/cppunit/Test.cpp: added. Implementation of new utility methods.
* include/cppunit/TestCase.h:
* src/cppunit/TestCase.cpp: inherits TestLeaf. Removed toString(), run(void) and
defaultResult(). Removed default constructor.
* src/cppunit/TestCase.cpp:
* src/cppunit/TestSuite.cpp: fixed some includes that used "" instead of <>.
* include/cppunit/TestComposite.h:
* src/cppunit/TestComposite.cpp: added. Common implementation of Test for composite
tests (TestSuite).
* include/cppunit/TestFailure.h:
* src/cppunit/TestFailure.cpp: removed toString().
* include/cppunit/TestLeaf.h:
* src/cppunit/TestLeaf.cpp: added. Common implementation of Test for single test
(TestCase).
* include/cppunit/TestListener.h: added TimingListener example to documentation.
* include/cppunit/TestPath.h:
* src/cppunit/TestPath.cpp: added. List of test traversed to access a test in the
test hierarchy.
* include/cppunit/TestRunner.h: added. Generic TestRunner.
* src/cppunit/TestRunner.cpp: moved to TextTestRunner.cpp. Added new implementation
of includecppunit/TestRunner.h.
* include/cppunit/TestSuite.h:
* src/cppunit/TestSuite.cpp: inherits TestComposite and implements new Test
interface. Removed toString().
* src/cppunit/TextTestRunner.cpp: moved from TestRunner.cpp. Implementation of
include/cppunit/ui/text/TestRunner.h.
* include/cppunit/extensions/RepeatedTest.h:
* src/cppunit/RepeatedTest.cpp: removed toString().
* include/cppunit/extensions/TestDecorator.h: inherits TestLeaf.
Removed toString()
* include/cppunit/XmlOutputter.h:
* src/cppunit/XmlOutputter.cpp:
* examples/cppunittest/XmlOutputterTest.cpp:
* examples/cppunittest/XmlOutputterTest.h: XML outputter now escape node content.
Add unit test for that bug (#540944). Added style sheet support. Modified
XML structure: failure message as its own element.
* src/msvc/testrunner/TestRunnerModel.h:
* src/msvc/testrunner/TestRunnerModel.cpp: used Test::findTest() to find a test
by name instead of using RTTI. Added toAnsiString() for convertion when
compiling as UNICODE.
* src/msvc/testrunner/TreeHierarchyDlg.h:
* src/msvc/testrunner/TreeHierarchyDlg.cpp: used new composite interface of Test
to explorer the test hierarchy instead of RTTI.
* examples/cppunittest/TestPathTest.h:
* examples/cppunittest/TestPathTest.cpp: added, unit tests for TestPath.
* examples/cppunittest/TestCaseTest.h:
* examples/cppunittest/TestCaseTest.cpp: added test for TestLeaf.
* examples/cppunittest/TestSuiteTest.h:
* examples/cppunittest/TestSuiteTest.cpp: added test for TestComposite and
new Test interface.
Diffstat (limited to 'TODO')
-rw-r--r-- | TODO | 43 |
1 files changed, 38 insertions, 5 deletions
@@ -1,9 +1,42 @@ * CppUnit: - - Unicode support + - Update TextTestRunner to use Test::findTest() + - [DONE] Introduce a new generic CppUnit::TestRunner + - [DONE]Update MfcTestRunner to use Test::findTest() + - Update MfcTestRunner to use TestPath to store test in the registry + - Update QtTestRunner to use findTest() + - Include DllPlugInTester, and update to use findTest() and TestPath(). + - Add startSuite() and endSuite() to TestListener and TestResult + - Add TestResult::protectedRun( ProtectedTest * ) to allow custom exception and other + error catching (signal on Unix) + - Add a global set up decorator for all test run to TestResult + (subclass TestSetupDecorator, and add a setTest() method ) + - Change CompilerOutputter to be customized with parameter instead of subclassing: + provide a default string to the constructor that indicates the error report format: + %p => full path (D:\prg\..\File.cpp) + %f => just the file name (File.cpp) + %l => line (123) + For VC++: "%p(%l):" + For GCC: "%f:%l:" + String could be defined in the configuration file, and be guessed by configure (?) + Assume GCC if not VC++ ? + Notes: gcc error format: + g++ -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include -I../../include -g -O2 -c TextOutputter.cpp -Wp,-MD,.deps/TextOutputter.TPlo -fPIC -DPIC + TextOutputter.cpp:5: cppunit/TextOutputter.h: No such file or directory + - True Unicode support: + - Introduce a new CppUnit::String class. This class allow implicit construction from + const char *, std::string, wchar_t * and std::wstring. Provides accessor str() and + wstr() to retreive the string as either ANSI or UNICODE string. + - Update Asserter to use String instead of std::string + - Deprecate Exception::what(), and add String Exception::message(). + - Compatibility break for NotEqualException::expected(), actual() and additionalInfo(). + - Update MfcTestRuner to use wstr() in Unicode build => introduce a utility function + toCString( CppUnit::String &) that returns a CString using the appropriate method. + - STL orthodox template for container elements. - - CompilerOutputter support for gcc error format: - g++ -DHAVE_CONFIG_H -I. -I. -I../../config -I../../include -I../../include -g -O2 -c TextOutputter.cpp -Wp,-MD,.deps/TextOutputter.TPlo -fPIC -DPIC - TextOutputter.cpp:5: cppunit/TextOutputter.h: No such file or directory + +* UnitTest + - add test for XmlOutputter::setStyleSheet (current assertion macro strip <?...> when + testing ) * VC++ TestRunner: - Make it possible to specify the registry path where settings are stored. @@ -26,7 +59,7 @@ of a text (they disappear). - advanced assertions with the CPPUNIT_ASSERT_MESSAGE - Helper Macros for convenience - Creating a suite - - Composing a suite from more suits (i.e. compose tests for n modules to + - Composing a suite from more suites (i.e. compose tests for n modules to form a big test for the whole program) - customizing output using an user defined TestListener - how to write the TestListener (subclass of TestListener) |