diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-06-14 19:21:01 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-06-14 19:21:01 +0000 |
| commit | 73a038f1eaa268cec330d971fb550befec6f7798 (patch) | |
| tree | c3eba5d793e37413889acad5b0b9f70caf89b0f6 /NEWS | |
| parent | f39e160fba25476de7d41e2f19d756db7ee76dc7 (diff) | |
| download | cppunit-73a038f1eaa268cec330d971fb550befec6f7798.tar.gz | |
Include/cppunit/plugin/PlugInManager.
include/cppunit/plugin/PlugInManager.h:
* src/cppunit/PlugInManager.cpp: added two methods to use the plug-in
interface for Xml Outputter hooks.
* include/cppunit/plugin/TestPlugIn.h: added two methods to the plug-in
interface for Xml Outputter hooks.
* include/cppunit/plugin/TestPlugInAdapter.h:
* src/cppunit/plugin/TestPlugInAdapter.cpp: renamed TestPlugInDefaultImpl.
Added empty implementation for Xml outputter hook methods.
* include/cppunit/tools/StringTools.h:
* src/cppunit/tools/StringTools.cpp: added. Functions to manipulate string
(conversion, wrapping...)
* include/cppunit/tools/XmlElement.h:
* src/cppunit/XmlElement.cpp: renamed addNode() to addElement(). Added
methods to walk and modify XmlElement (for hook). Added documentation.
Use StringTools.
* include/cppunit/XmlOutputter.h:
* src/cppunit/XmlOutputter.cpp: added hook calls & management.
* include/cppunit/XmlOutputterHook.h:
* src/cppunit/XmlOutputterHook.cpp: added. Hook to customize XML output.
* src/DllPlugInTester/DllPlugInTester.cpp: call plug-in XmlOutputterHook
when writing XML output. Modified so that memory is freed before
unloading the test plug-in (caused crash when freeing the XmlDocument).
* examples/ReadMe.txt:
* examples/ClockerPlugIn/ReadMe.txt: added details about the plug-in
(usage, xml content...)
* examples/ClockerPlugIn/ClockerModel.h:
* examples/ClockerPlugIn/ClockerModel.cpp: extracted from ClockerListener.
Represents the test hierarchy and tracked time for each test.
* examples/ClockerPlugIn/ClockerListener.h:
* examples/ClockerPlugIn/ClockerListener.cpp: extracted test hierarchy
tracking to ClockerModel. Replaced the 'flat' view option with a 'text'
option to print the timed test tree to stdout.
* examples/ClockerPlugIn/ClockerPlugIn.cpp: updated to hook the XML
output and use the new classes.
* examples/ClockerPlugIn/ClockerXmlHook.h:
* examples/ClockerPlugIn/ClockerXmlHook.cpp: added. XmlOutputterHook to
includes the timed test hierarchy and test timing in the XML output.
* examples/cppunittest/XmlElementTest.h:
* examples/cppunittest/XmlElementTest.cpp: added new test cases.
* examples/cppunittest/XmlOutputterTest.h:
* examples/cppunittest/XmlOutputterTest.cpp: added tests for
XmlOutputterHook.
Diffstat (limited to 'NEWS')
| -rw-r--r-- | NEWS | 70 |
1 files changed, 54 insertions, 16 deletions
@@ -1,10 +1,14 @@ New in CppUnit 1.9.8: --------------------- - - XmlDocument - Custom test macros. - - Exception message - - MFC TestRunner + - Exception message are now structured + - MFC TestRunner, detail field added. + - XmlDocument extracted from XmlOutputter to create different XML output + - Xml output customization. + - Test plug-in XML output Hook + - ClockerPlugIn example includes test time in XML output. + - DllPlugInTester allows test plug-in to hook the XML output. * Custom test macros @@ -37,25 +41,55 @@ This change allow ouputters to deal with all failure the same way (there is no special case for the equality assertion any more). +* XmlDocument extracted from XmlOutputter to create different XML output + + - Classes XmlDocument and XmlElement where extracted from XmlOutputter. This + help writing outputters that use a completly different XML format. + +* Xml output customization. + + - Xml output can be customized using XmlOutputterHook. To do so, subclass + XmlOutputterHook and register it to the XmlOutputter with addHook() before + call XmlOutputter::write(). + + Hook can be used to add some datas to the XmlDocument or the XmlElement of + a specific hook. Methods have been added to XmlElement to help walking and + modifying the XmlDocument. + + See ClockerPlugIn example. + * MFC TestRunner + - The name of the test is displayed just before being run. - Browse dialog is resizable - Better (and cleaner) handling of windows resizing - Failure list on show the short description of the failure. - Edit field added to display the details of the failure. +* MFC test plug-in runner (TestPlugInRunner): + + - command line: a dll name can be specified on the command after -testsuite: + example: TestPlugInRunnerd.exe -testsuite Simpled.dll + +* Test plug-in XML output Hook + + - TestPlugIn interface provides a mean for plug-in to register hook for + XML output. Practically, this allow plug-in to add specific data to the + output. See ClockerPlugIn example, which add timing datas to the xml + output. + * DllPlugInTester: - added option -w / --wait to wait for the user to press a key before exiting. -* MfcUi: + - plug-in can now provides XmlOutputterHook to add specific datas to the + XML ouput. See ClockerPlugIn example. - - the name of the test is displayed just before being run. +* Examples: -* MfcUi plug-in runner (TestPlugInRunner): - - - command line: a dll name can be specified on the command after -testsuite: - example: TestPlugInRunnerd.exe -testsuite Simpled.dll + - ClockerPlugIn: the example now use the new XmlOutputterHook. Test time are + now included in the XML output. See examples/ClockerPlugIn/ReadMe.txt for + details. * Bug Fix: @@ -72,6 +106,9 @@ * Compatibility Break: + - CompilerOutputter: removed printNotEqualMessage() and printDefaultMessage(). + No longer needed since Exception message are processed in a generic way. + - Exception constructor takes a Message instead of a string. Notes that the first argument in Message constructor is a short description, not the message. Therefore, the change will usualy have the following form: @@ -79,13 +116,7 @@ You may want to use Asserter functions instead of constructing and throwing the exception manually. - - CompilerOutputter: removed printNotEqualMessage() and printDefaultMessage(). - No longer needed since Exception message are processed in a generic way. - - - XmlOutputter: removed methods writeProlog() and writeTestResult() which - are replaced by XmlDocument. - - - XmlOuputter::Node: class has been extracted and renamed XmlElement. + - TestPlugInAdapter: renamed TestPlugInDefaultImpl. - TestSuiteBuilder: removed default constructor. All remaining constructors take an additional argument of type TestNamer used to specify the fixture @@ -96,6 +127,13 @@ - TextTestResult: most printing method were removed. This task is now delegated to TextOuputter. + - XmlElement: renamed addNode() to addElement(). + + - XmlOutputter: removed methods writeProlog() and writeTestResult() which + are replaced by XmlDocument. + + - XmlOuputter::Node: class has been extracted and renamed XmlElement. + * Deprecated: - Asserter: all functions that use a string for the failure message. Construct |
