1 2010-July-23 Erwin Coumans
2 * add cmake build support, removed other build systems
4 2009-11-24 Baptiste Lepilleur <blep@users.sourceforge.net>
5 * src/cppunit/TestResult.cpp: flush stdout & stderr in destructor
6 to avoid message loss in case of crash (bug #2832029).
8 * include/cppunit/plugin/TestPlugIn.h:
9 * include/cppunit/plugin/TestPlugInDefaultImpl.h: added missing dllexport
10 for CppUnitTestPlugIn.
12 * include/cppunit/portability/config-msvc6.h:
13 * include/cppunit/portability/Portability.h: Added macro
14 CPPUNIT_UNIQUE_COUNTER on MSVS 7.0+ using __COUNTER__ to
17 * examples/examples2008.sln: Fixed compilation issue in debug
18 configuration with VS2008 (due to incorrect configuration
21 * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.cpp: fixed
22 memory leak in getCommandLineArguments() (bug #1721408).
24 * config/ax_cxx_gcc_abi_demangle.m4:
25 * src/cppunit/TypeInfoHelper.cpp: Fixed demangling of symbols on gcc 4.3
28 2009-11-23 Baptiste Lepilleur <blep@users.sourceforge.net>
30 * src/DllPlugInTester/Makefile.am:
31 * examples/cppunittest/Makefile.am:
32 * examples/money/Makefile.am:
33 * examples/simple/Makefile.am:
34 * examples/hierarchy/Makefile.am: Applied patch #2807259
35 contributed by Jan Echternach. LIBADD_DL contains a list of libraries
36 like "-ldl". Thus, it should be in LDADD instead of LDFLAGS in case
37 one of the libraries depends on a path set in LDFLAGS.
40 * src/msvc6/testrunner/MsDevCallerListCtrl.cpp:
41 * INSTALL-VS.Net2008.txt: Added updated project and instructions for
42 building under Visual Studio.Net 2008 and fixed compilation issue.
44 2008-10-12 Baptiste Lepilleur <blep@users.sourceforge.net>
46 * doc/cookbook.dox: fixed typos.
48 2008-02-21 Steve M. Robbins <smr@sumost.ca>
49 * examples/cppunittest/OrthodoxTest.h:
50 * examples/cppunittest/XMLOutputterTest.cpp:
51 * examples/hierarchy/main.cpp:
52 * include/cppunit/extensions/ExceptionTestCaseDecorator.h:
53 * src/cppunit/BriefTestProgressListener.cpp:
54 * src/cppunit/TestFactoryRegistry.cpp:
55 * src/cppunit/TestPlugInDefaultImpl.cpp:
56 * src/cppunit/TestSuccessListener.cpp:
57 * src/cppunit/TextProgressListener.cpp:
58 * src/cppunit/XmlOutputterHook.cpp:
59 * src/DllPlugInTester/CommandLineParserTest.cpp:
60 * src/DllPlugInTester/DllPlugInTesterTest.cpp: Changes to suppress
61 warnings of gcc -Wall -W -ansi, mainly from patch [1898225].
63 2008-02-20 Steve M. Robbins <smr@sumost.ca>
65 * examples/money/MoneyTest.h (TestFixture): Change deprecated
66 CPPUNIT_TEST_EXCEPTION to simple CPPUNIT_TEST.
67 * examples/money/MoneyTest.cpp (testAddThrow): Wrap throwing
68 expression "money += money123FF" inside CPPUNIT_ASSERT_THROW().
70 * Changes to build without warnings using gcc -Wall -W -ansi.
71 Applied patch [1898225] to remove name of unused argument and use
72 no-arg version of main(). Tested on both GCC 4.2.3 and a
73 prerelease of GCC 4.3.0.
74 * examples/cppunittest/assertion_traitsTest.cpp (test_toString):
75 Change template parameter of
76 CPPUNIT_NS::assertion_traits<char*>::toString() to const char*,
77 avoiding a deprecated conversion from string literal to char*.
78 * src/DllPlugInTester/CommandLineParserTest.cpp (parse): move
79 semicolon of empty loop body to its own line, avoiding a warning
82 2008-02-20 Steve M. Robbins <smr@sumost.ca>
84 * configure.in: Update CPPUNIT_MICRO_VERSION for release 1.12.1.
86 2008-02-07 Steve M. Robbins <smr@sumost.ca>
88 * src/qttestrunner/MostRecentTests.h:
89 * src/qttestrunner/TestRunnerModel.h: Change from <qlist.h> to
90 replacment <qptrlist.h>; avoids use of compatibility headers.
92 2007-03-04 Steve M. Robbins <smr@sumost.ca>
94 * include/cppunit/portability/FloatingPoint.h (floatingPointIsFinite): Change
95 return type to int, following the convention of isfinite(), finite(), etc.
97 2007-02-25 Baptiste Lepilleur <blep@users.sourceforge.net>
99 * doc/cookbook.dox: changed suite() to return a TestSuite instead
100 of a Test to avoid introducing unnecessary complexity.
102 2007-02-24 Steve M. Robbins <smr@sumost.ca>
104 * include/cppunit/portability/FloatingPoint.h: Include Portability.h.
106 2007-02-24 Baptiste Lepilleur <blep@users.sourceforge.net>
108 * src/cppunit/TestAssert.cpp (assertDoubleEquals): Moved finite & NaN
109 tests to include/cppunit/portability/FloatingPoint.h. Changed
110 implementation assertDoubleEquals to explicitly test for NaN
111 in case of non-finite values to force equality failure in the
112 presence of NaN. Previous implementation failed on Microsoft
113 Visual Studio 6 (on this platform: NaN == NaN).
114 * examples/cppunittest/TestAssertTest.cpp: Add more unit tests to
115 test the portable floating-point primitive. Added missing
118 * include/cppunit/portability/Makefile.am:
119 * include/cppunit/portability/FloatingPoint.h: Added file. Extracted
120 isfinite() from TestAssert.cpp.
122 * include/cppunit/config-evc4:
123 * include/cppunit/config-msvc6: Added support for _finite().
125 2007-01-30 Steve M. Robbins <smr@sumost.ca>
127 * examples/cppunittest/assertion_traitsTest.h:
128 * examples/cppunittest/assertion_traitsTest.cpp: New. Test
131 * examples/cppunittest/Makefile.am: Add
132 assertion_traitsTest.{h,cpp}.
134 * examples/cppunittest/TestAssertTest.h:
135 * examples/cppunittest/TestAssertTest.cpp: Add
136 testAssertDoubleEqualsPrecision() to test precision of failure
139 2007-01-27 Steve M. Robbins <smr@sumost.ca>
141 * examples/cppunittest/TestAssertTest.cpp:
142 * examples/cppunittest/TestAssertTest.h: Remove declaration of
143 unimplemented functions testAssertDoubleNotEquals1 and
144 testAssertDoubleNotEquals2. Factor new method
145 testAssertDoubleNonFinite out of existing testAssertDoubleEquals.
147 * src/cppunit/Win32DynamicLibraryManager.cpp (doLoadLibrary):
148 Unconditionally use ANSI version of LoadLibrary() and other
149 functions with string arguments.
151 2007-01-26 Steve M. Robbins <smr@sumost.ca>
153 * config/ax_cxx_have_isfinite.m4: New. Autoconf macro that tests
154 for finite() in C++ mode.
155 * configure.in: Check for isfinite() and finite().
157 * examples/cppunittest/TestAssertTest.cpp (testAssertDoubleEquals):
158 * src/cppunit/TestAssert.cpp (assertDoubleEquals): Account for
161 2007-01-11 Steve M. Robbins <smr@sumost.ca>
163 * examples/cppunittest/MockFunctor.h:
164 * examples/cppunittest/MockProtector.h:
165 * examples/cppunittest/XmlOutputterTest.cpp:
166 * examples/cppunittest/XmlUniformiser.cpp:
167 * src/DllPlugInTester/CommandLineParser.cpp:
168 * src/cppunit/DynamicLibraryManagerException.cpp:
169 * src/cppunit/TestCaseDecorator.cpp:
170 * src/cppunit/TextTestRunner.cpp:
171 * src/cppunit/XmlDocument.cpp: Arrange field initializers in
174 * include/cppunit/plugin/TestPlugIn.h (struct CppUnitTestPlugIn):
175 * include/cppunit/extensions/TestFixtureFactory.h (class TestFixtureFactory):
176 * include/cppunit/XmlOutputterHook.h (XmlOutputterHook): Add
177 virtual destructor to virtual class.
179 * examples/cppunittest/TestAssertTest.cpp: Put a C++ statement in
180 the first argument of CPPUNIT_ASSERT_THROW() and
181 CPPUNIT_ASSERT_NO_THROW().
183 * examples/hierarchy/main.cpp (main): Return value now reflects
184 whether tests passed.
185 * examples/hierarchy/Makefile.am (XFAIL_TESTS): New. Mark hierachy
186 test program as an expected failure.
188 * Makefile.am (dist-hook): Don't fail if $(distdir)/lib already
191 * config/bb_enable_doxygen.m4 (BB_ENABLE_DOXYGEN): Add quotes
192 around function name, BB_ENABLE_DOXYGEN.
194 2006-10-26 Baptiste Lepilleur <blep@users.sourceforge.net>
195 * include/cppunit/TestResult.h:
196 * include/cppunit/ui/Config.h: fixed compilation issues with QtTestRunner.
198 2006-06-29 Baptiste Lepilleur <blep@users.sourceforge.net>
200 * lib/.keepme: added dummy file to prevent lib/ removal by some
201 unzip clients. Fixed bug #1527877 .
203 * src/msvc6/TesRunner/TestRunner.rc:
204 * src/msvc6/testpluginrunner/TestPlugInRunner.rc: Fixed bug #1528212
205 (some resources wrongly tagged as French).
207 2006-06-29 Baptiste Lepilleur <blep@users.sourceforge.net>
208 * include/cppunit/ui/text/TextTestRunner.h
209 * src/cppunit/TextTestRunner.cpp: applied patch #1210013 to remove
210 hidden virtual function warning.
212 * autogen.sh: applied patch #1449380 contributed by Sander Temme
213 to allow running autogen on Mac OS X.
215 * doc/header.html: updated to handle new tabs css required for
216 html doc generated with doxygen 1.4.7.
218 * src/msvc6/testrunner/MsDevCallerListCtrl.cpp: applied correction
219 provided to fix bug #1498175 (double click on failure does not
222 2006-03-04 Baptiste Lepilleur <blep@users.sourceforge.net>
223 * contrib/xml-xsl/report.xsl: reported correction posted on the wiki.
225 * removed debian/ directory. An up to date patch can be found at:
228 * cppunit.spec.in: applied patch #1242905 partially (%post and %postun).
232 * Makefile.am: integrated patch from Robert Leight to generate pkg-config.
234 2006-02-04 Baptiste Lepilleur <blep@users.sourceforge.net>
235 * include/cppunit/TestListener.h:
236 * src/qttestrunner/TestRunnerModel.cpp: removed compilation warning.
238 2006-02-01 Baptiste Lepilleur <blep@users.sourceforge.net>
239 * examples/qt: integrated Ernst patch from qt examples.
241 2005-12-12 Baptiste Lepilleur <blep@users.sourceforge.net>
242 * src/qttestrunner: integrated Ernst patch for QtTestRunner and Qt 3.x.
243 Enhanced qmake project files to handle multiple build configuration
245 2005-11-27 Baptiste Lepilleur <blep@users.sourceforge.net>
246 * doc/cookbook.dox: fixed type (patch #1334567)
248 2005-11-06 Baptiste Lepilleur <blep@users.sourceforge.net>
249 * include/cppunit/config/SourcePrefix.h: disable warning #4996
250 (sprintf is deprecated) for visual studio 2005.
252 * include/cppunit/TestAssert.h: use sprintf_s instead of sprintf for
255 * examples/ClockerPlugIn/ClockerPlugIn.cpp
256 * examples/DumperPlugIn/DumperPlugIn.cpp: use SourcePrefix.h. Fixed
257 wrong macro usage to implement DllMain.
259 * examples/msvc6/HostApp/ExamplesTestCase.h
260 * examples/msvc6/HostApp/ExamplesTestCase.cpp
261 * examples/simple/ExamplesTestCase.h
262 * examples/simple/ExamplesTestCase.cpp: removed divideByZero test case
263 as it cause some crash on some platforms.
266 2005-10-27 Baptiste Lepilleur <blep@users.sourceforge.net>
267 * include/cppunit/TestAssert.h: added missing #include <stdio.h>
269 2005-07-30 Baptiste Lepilleur <blep@users.sourceforge.net>
270 * include/cppunit/config/SourcePrefix.h: added, prefix added at begining of sources
271 to remove warning. Removed most warning when compiling with VC++ 6sp6.
273 * examples/money/Money.h:
274 * examples/money/MoneyTest.cpp: added assert equal usage.
276 2005-07-30 Baptiste Lepilleur <blep@users.sourceforge.net>
278 * include/cppunit/config/config-msvc6.h: auto-detect if RTTI are enabled
279 the _CPPRTTI macro (defined by the compiler when enabling RTTI).
281 * include/cppunit/config/config-msvc6.h: added missing macro definition
282 CPPUNIT_HAVE_CPP_CAST.
284 * src/cppunit/TestResultCollector.cpp: fixed memory leak in destructor.
286 2005-07-15 Baptiste Lepilleur <blep@users.sourceforge.net>
288 * config/bb_enable_doxygen.m4: Rolled back Brad Hards patch as it break
289 generation of doc/Makefile.am.
291 * cppunit.spec.in: Applied patch #1232555 from Patrice Dumas. This file is
292 use for RPM packaging.
294 * development snapshot release 1.11.0.
296 2005-07-09 Baptiste Lepilleur <blep@users.sourceforge.net>
299 * include/cppunit/TestSuite.h:
300 * include/cppunit/XmlOutputterHook.h: applied Brad Hards patch
301 that correct miscellaneous doc generation issues (unescaped <>, \...).
303 * include/cppunit/plugin/TestPlugIn.h:
304 * include/cppunit/CompilerOutputter.h:
305 * doc/CppUnit-win.dox: removed a few documentation generation warnings.
307 * config/bb_enable_doxygen.m4: applied Brad Hards patch to remove warning
308 when running ./autogen.sh or aclocal.
310 * doc/money.dox: fixed bad usage of CPPUNIT_ASSERT_EQUALS.
312 2005-07-05 Baptiste Lepilleur <blep@users.sourceforge.net>
314 * Examples/simple/Makefile.am: do not install 'simple' programm
317 2005-07-05 Baptiste Lepilleur <blep@users.sourceforge.net>
319 * include/cppunit/TestResultCollector.h
320 * src/cppunit/TestResultCollector.cpp: fixed memory leak
321 occuring when calling reset().
323 * src/cppunit/DllMain.cpp: added work-around for mingw compilation
324 for BLENDFUNCTION macro issue when including windows.h.
326 * src/qttestrunner/TestRunnerDlgImpl.cpp: fixed display of multiline
329 * include/cppunit/Portability.h: better integration of compiler output
330 for gcc on Mac OS X with Xcode (contributed by Claus Broch).
332 2005-06-14 Baptiste Lepilleur <blep@users.sourceforge.net>
333 * src/msvc6/testrunner/ProgressBar.cpp: applied patch from bug #1165875,
334 (use system color for border instead of hard-coded color).
336 * src/cppunit/Makefile.am:
337 * configure.in: MinGW, cygwin: enable build of shared library when using
338 libtool. patch #1194394 contributed by Stéphane Fillod.
340 * cppunit.m4: applied patch #1076398 contributed by Henner Sudek. Fix
341 version number comparison in AM_PATH_CPPUNIT.
343 * contrib/xml-xsl/cppunit2junit.txt
344 * contrib/xml-xsl/cppunit2junit.xsl
345 * contrib/readme.txt: XSLT for compatibility with Ant junit xml formatter.
346 Patch #1112053 contributed by Norbert Barbosa.
348 2005-02-23 Baptiste Lepilleur <blep@users.sourceforge.net>
350 * examples/hierarchy/BoardGameTest.h:
351 * examples/hierarchy/ChessTest.h: fixed compilation issue, prefixed access
352 to class member with 'this' (inheriting from template parameter
355 2004-11-19 Baptiste Lepilleur <blep@users.sourceforge.net>
357 * include/cppunit/Message.h
358 * include/cppunit/SourceLine.h:
359 * src/cppunit/Message.cpp:
360 * src/cppunit/SourceLine.cpp: provided thread-safe copy constructor on
361 platform that do not provide thread-safe copy constructor for std::string.
363 2004-11-08 Baptiste Lepilleur <blep@users.sourceforge.net>
365 * include/cppunit/TestAssert.h: fixed portability bug pointed out by
368 2004-11-06 Baptiste Lepilleur <blep@users.sourceforge.net>
370 * include/cppunit/TestAssert.h: integrated Neil Ferguson patch for high
371 precision conversion to string for double number. Modified the patch
372 to works even if DBL_DIG C99 macro is not defined.
374 * include/cppunit/Portability.h: fixed EVC++ 4 detection.
376 * src/cppunit/Win32DynamicLibraryManager.cpp: integrated patch #1024428,
377 MinGW compilation under Windows XP.
379 2004-11-05 Baptiste Lepilleur <blep@users.sourceforge.net>
381 * include/cppunit/TestAssert.h:
382 * src/cppunit/TestAssert.cpp: integrated Neil Ferguson patch for missing
383 _MESSAGE assertion variants. Also enhanced the failure message of a
386 2004-09-10 Baptiste Lepilleur <blep@users.sourceforge.net>
388 * src/msvc6/DSPlugIn/StdAfx.h: add #error to prevent compilation on VC 7.
390 * src/msvc6/testrunner/MsDevCallerListCtrl.cpp:
391 * src/msvc6/testrunner/MsDevCallerListCtrl.h: integrated go to source line
392 features on double click contributed by Max Quatember and
393 Andreas Pfaffenbichler.
395 2004-08-01 Baptiste Lepilleur <blep@users.sourceforge.net>
397 * include/cppunit/XmlOutputter.h:
398 * include/cppunit/tools/XmlDocument.h:
399 * src/cppunit/XmlDocument.cpp:
400 * src/cppunit/XmlOutputter.cpp: integrated patch #997006 from Akos Maroy.
401 This patch makes the 'standalone' attribute in XML header optional.
403 2004-06-25 Baptiste Lepilleur <blep@users.sourceforge.net>
405 * include/cppunit/Portability.h: moved OStringStream alias definition to
406 portability/Stream.h. User need to define EVC4 to indicate that
407 config-evc4.h should be used. (how to we detect this automatically ?).
408 Notes that this means it might be needed to add #include <string> to some
409 headers since its no longer included by Portability.h.
411 * include/cppunit/portability/Stream.h: define alias OStringStream, stdCOut(),
412 and OFileStream. If CPPUNIT_NO_STREAM is defined (evc4 config), then provides
413 our own implementation (based on sprintf and fwrite).
415 * include/cppunit/config/config-evc4.h: config file for embedded visual c++ 4.
416 Still need to detect for this platform in Portability.h (currently relying on
417 EVC4 being defined...)
419 * *.[cpp/h]: most source files have been impacted with the following change:
420 #include <iostream> -> #include <cppunit/portability/Stream.h>
421 std::ostream -> CPPUNIT_NS::OStream
422 std::ofstream -> CPPUNIT_NS::OFileStream
423 std::cout -> CPPUNIT_NS::stdCOut()
425 Also, code using std::cin as been defined out if CPPUNIT_NO_STREAM was defined.
426 The exact list of impact files can be obtain in CVS using tags:
427 TG_CPPUNIT_NO_STREAM_BEFORE & TG_CPPUNIT_NO_STREAM_AFTER.
429 2004-06-19 Baptiste Lepilleur <blep@users.sourceforge.net>
431 * cppunit.m4: patch #946302, AM_PATH_CPPUNIT doesn't report result
432 if CppUnit is missing.
435 2004-06-18 Baptiste Lepilleur <blep@users.sourceforge.net>
439 * include/cppunit/extension/TestSuiteBuilderContext.h:
440 * src/cppunit/TestSuiteBuilderContext.cpp: fixed bug #921843. This bug
441 was caused by a known STL bug in VC++ 6.
442 See http://www.dinkumware.com/vc_fixes.html <xtree> issue with shared
443 std::map in dll. As a work-around the map has been replaced by a vector.
445 * src/DllPlugInTester/*.cpp: bug #941625, string literal using char *
446 instead of const char *. Patch contributed by Curt Arnold has been
449 * src/msvc6/testrunner/TestRunnerDlg.h:
450 * src/msvc6/testrunner/TestRunnerDlg.cpp:
451 * src/msvc6/testpluginrunner/TestPlugIn.cpp:
452 * src/msvc6/testpluginrunner/TestPlugInRunnerApp.cpp:
453 * src/msvc6/testpluginrunner/TestPlugInRunnerModel.cpp:
454 * src/msvc6/testpluginrunner/TestPlugInRunnerModel.h: bug #952912,
455 memory leaks when loading/reloading plug-ins.
457 2004-06-17 Baptiste Lepilleur <blep@users.sourceforge.net>
459 * include/cppunit/Portability.h:
460 * include/cppunit/plugin/TestPlugIn.h: fixed report compilation issue
461 with mingw & cygwin. WIN32 is now always defined if _WIN32 is defined.
462 Bug #945737 & #930338.
464 * doc/Makefile.am: fixed bug #940650 => cp -dpR, removed option -p since
465 there is no link to preserve anyway (does not exist on SunOs).
467 * src/cppunit/TestPath.cpp: bug #938753, array bound read in
468 splitPathString() with substr if an empty string is passed.
470 * src/*/*.dsp: bug #933154, post build fail in directory with spaces.
473 2004-06-16 Baptiste Lepilleur <blep@users.sourceforge.net>
477 * install-UNIX.txt: added some notes concerning Sun CC 5.5 & AIX.
479 * examples/*/*.dsp: fixed project settings (rtti not enabled).
481 2004-03-13 Baptiste Lepilleur <blep@users.sourceforge.net>
485 2004-03-13 Baptiste Lepilleur <blep@users.sourceforge.net>
487 * cppunit-config.in: bug #903363, missing -ldl from the output of
488 cppunit-config --libs. Fixed thanks Eric Blossom patch.
490 * examples/qt/Main.cpp:
491 * examples/qt/ExampleTestCase.h: fixed bug #789672: QT example should
492 use CPPUNIT_NS macro.
494 * src/cppunit/UnixDynamicLibraryManager.cpp: applied patch #816563
495 from Gareth Sylvester. Adding RTLD_GLOBAL allows test plug-ins
496 to provide symbols to shared objects they load themselves.
498 * examples/cppunittest/TestAssertTest.h:
499 * examples/cppunittest/TestAssertTest.cpp:
500 * examples/cppunittest/XmlUniformiserTest.h:
501 * examples/cppunittest/XmlUniformiserTest.cpp:
502 * include/cppunit/TestAssert.h: add the exception assertion macros
503 from cppunit 2: CPPUNIT_ASSERT_THROW, CPPUNIT_ASSERT_NO_THROW,
504 CPPUNIT_ASSERT_ASSERTION_FAIL, CPPUNIT_ASSERT_ASSERTION_PASS.
505 Updated unit test to use and test the new macros.
507 * include/cppunit/extensions/HelperMacros.h: deprecated the
508 test case factory that check for exception (CPPUNIT_TEST_FAIL &
509 CPPUNIT_TEST_EXCEPTION).
512 2004-02-20 Baptiste Lepilleur <blep@users.sourceforge.net>
516 2004-02-18 Baptiste Lepilleur <blep@users.sourceforge.net>
520 * config/ax_cxx_gcc_abi_demangle.m4:
521 * src/cppunit/TypeInfoHelper.cpp: added patch from
522 Neil Ferguson <nferguso@eso.org> to use gcc c++ abi to demangle typeinfo
525 2003-05-15 Baptiste Lepilleur <blep@users.sourceforge.net>
527 * include/cppunit/plugin/testplugin.h: fixed bug #767358, wrong
528 preprocessor symbol for SHL_LOADER.
530 2003-05-15 Baptiste Lepilleur <blep@users.sourceforge.net>
532 * include/cppunit/config/config-msvc6.h: changed the compiler outputter
533 default format (CPPUNIT_COMPILER_LOCATION_FORMAT) for Visual Studio 7.0.
534 Assertion now appears in the task list.
536 2003-05-07 Baptiste Lepilleur <blep@users.sourceforge.net>
538 * include/cppunit/extensions/Makefile.am: removed TestSuiteBuilder.h
543 * examples/cppunittest/Makefile.am
544 * examples/hierarchy/Makefile.am
545 * examples/money/Makefile.am
546 * examples/simple/Makefile.am
547 * include/cppunit/config/SelectDllLoader.h
548 * include/cppunit/plugin/TestPlugIn.h
549 * include/cppunit/tools/Algorithm.h
550 * src/DllPlugInTester/Makefile.am
551 * src/cppunit/Makefile.am
552 * src/cppunit/TestDecorator.cpp
553 * src/cppunit/ShlDynamicLibraryManager.cpp
554 * src/cppunit/UnixDynamicLibraryManager.cpp
555 * src/cppunit/Win32DynamicLibraryManager.cpp: applied patch from
556 Abdessattar Sassi <abdesassi@users.sourceforge.net> to add support
557 for plug-in to hp-ux (patch #721546).
559 * INSTALL-unix: added build instruction for HP-UX.
561 2003-04-06 Baptiste Lepilleur <blep@users.sourceforge.net>
563 * include/cppunit/extensions/TestSuiteBuilder.h: removed (unused)
565 2003-03-31 Baptiste Lepilleur <blep@users.sourceforge.net>
567 * src/cppunit/DynamicLibraryManager.cpp: fixed compilation issue on Mingw
570 2003-03-20 Baptiste Lepilleur <blep@users.sourceforge.net>
572 * include/cppunit/extensions/TestNamer.h:
573 * src/cppunit/TestNamer.cpp: Fixed bug #704684, TestNamer has non-virtual
576 2003-03-15 Baptiste Lepilleur <blep@users.sourceforge.net>
578 * src/msvc6/testrunner/DynamicWindow/cdxCDynamicWndEx.cpp:
579 * examples/msvc6/CppUnitTestApp/CppUnitTestApp.cpp:
580 * examples/msvc6/HostApp/HostApp.cpp:
581 * src/msvc6/testpluginrunner/TestPlugInRunnerApp.cpp: fixed compatibility
584 * include/cppunit/tools/Algorithm.h:
585 * examples/cppunittest/XmlOutputterTest.cpp:
586 * examples/cppunittest/XmlUniformiser.*:
587 * src/cppunit/CompilerOutputter.cpp:
588 * src/cppunit/ProtectorChain.cpp:
589 * src/cppunit/StringTools.cpp:
590 * src/cppunit/TestPath.cpp:
591 * src/cppunit/TypeInfoHelper.cpp:
592 * src/cppunit/XmlElement.cpp:
593 * src/cppunit/XmlOutputter.cpp:
594 * src/DllPlugInTester/CommandLineParser.h:
595 * src/msvc6/testrunner/TestRunnerDlg.cpp: switched to using unsigned index in loop to
596 avoid signed/unsigned warning in vc7.
598 * include/cppunit/extension/ExceptionTestCaseDecorator.h: removed dll export
599 on template (caused link error on vc7).
601 2003-03-11 Baptiste Lepilleur <blep@users.sourceforge.net>
602 * config/bb_enable_doxygen.m4:
603 * doc/Makefile.am: applied Luke Dunstan's fix for bug #700730 (spaces not
604 allowed in doxygen path)
606 * src/cppunit/XmlElement.cpp:
607 * src/examples/cppunittest/XmlUniformser.cpp: fixed bug #676505 (no space
608 between attributes of XmlElement).
610 * include/cppunit/tools/Algorithm.h:
611 * src/cppunit/TestResult.cpp:
612 * src/msvc6/testrunner/TestRunnerModel.cpp: added removeFromSequence
613 algorithm in Algorithm.h to fix STLPort compatibility issue
614 (std::remove use the one of cstdio instead of algorithm). Bug #694971.
616 * src/examples/cppunittest/TrackedTestCase.cpp:
617 * src/examples/cppunittest/CppUnitTestMain.cpp:
618 * src/examples/money/Money.h: partially applied patch #699794. Fixed
619 compilation issues with Borland C++ 6.
621 2003-01-23 Baptiste Lepilleur <blep@users.sourceforge.net>
623 * include/cppunit/extensions/TestNamer.h: fixed bug #662666 (missing include
626 2002-12-12 Baptiste Lepilleur <blep@users.sourceforge.net>
628 * src/cppunit/TestResult.cpp: TestFailure are no longer passed as temporary,
629 but explicitely instantiated on the stack. Work around AIX compiler bug.
631 2002-12-03 Baptiste Lepilleur <blep@users.sourceforge.net>
633 * include/cppunit/TextTestResult.h: added missing dll export for
634 operator << (bug #610119).
636 2002-12-02 Baptiste Lepilleur <blep@users.sourceforge.net>
638 * include/cppunit/plugin/DynamicLibraryManagerException.h: added constructor
639 to fix compilation issues on recents version of gcc and sun CC (bug #619059)
641 * include/cppunit/input/XmlInputHelper.h: added.
643 * src/cppunit/XmlOuputter.cpp: use iterator instead of const_iterator.
645 * src/src/msvc6/testrunner/DynamicWindow/cdxCDynamicWnd.cpp: added call to
646 IsUp() in cdxCDynamicWnd::DoOnGetMinMaxInfo() before calling
647 GetBorderSize() which caused an assertion. Bug #643612.
649 2002-09-10 Baptiste Lepilleur <blep@users.sourceforge.net>
651 * include/cppunit/extensions/TestSuiteBuilderContext.h:
652 * src/cppunit/TestSuiteBuilderContext.cpp: added addProperty() and
653 getStringProperty(). Added macros CPPUNIT_TEST_SUITE_PROPERTY.
655 * src/msvc6/testrunner/TestRunnerDlg.cpp: integrated Tim Threlkeld's
656 bug fix #610162: browse button was disabled if history was empty.
658 * src/msvc6/testrunner/DynamicWindow/cdxCSizeIconCtrl.cpp: integrated
659 Tim Threlkeld's bug fix #610191: common control were not initialized.
661 * include/cppunit/extensions/ExceptionTestCaseDecorator.h: bug #603172,
662 missing Message construction.
664 * src/cppunit/DefaultProtector.cpp: bug #603172. Fixed missing ';'.
666 * src/cppunit/TestCase.cpp: bug #603671. Removed unguarded typeinfo
669 * examples/cppunittests/*Suite.h: bug #603666. Added missing Portability.h
672 2002-09-01 Baptiste Lepilleur <blep@users.sourceforge.net>
674 * include/cppunit/ui/text/TextTestRunner.h: fixed header guards.
676 2002-08-29 Baptiste Lepilleur <blep@users.sourceforge.net>
678 * include/cppunit/TestResult.h:
679 * src/cppunit/TestResult.cpp: fixed shouldStop() bug.
681 2002-08-29 Baptiste Lepilleur <blep@users.sourceforge.net>
683 * include/cppunit/CompilerOutputter.h:
684 * include/cppunit/Exception.h:
685 * include/cppunit/Protector.h:
686 * include/cppunit/TestListener.h:
687 * include/cppunit/TestPath.h:
688 * include/cppunit/TestResult.h:
689 * include/cppunit/TestRunner.h:
690 * include/cppunit/XmlOutputter.h:
691 * include/cppunit/plugin/DynamicLibraryManager.h:
692 * include/cppunit/plugin/PlugInManager.h:
693 * include/cppunit/plugin/PlugInParameters.h:
694 * include/cppunit/TestPlugIn.h:
695 * src/cppunit/DefaultProtector.h:
696 * src/cppunit/ProtectorChain.h:
697 * src/cppunit/ProtectorContext.h:
698 * src/cppunit/TestCase.cpp:
699 * src/cppunit/TestResult.cpp: fixed a dew documentation bugs.
701 * include/cppunit/TestResult.h:
702 * src/cppunit/TestResult.cpp: moved documentation to header.
704 2002-08-29 Baptiste Lepilleur <blep@users.sourceforge.net>
706 * include/cppunit/Asserter.h:
707 * include/cppunit/Message.h:
708 * include/cppunit/extensions/TestNamer.h:
709 * include/cppunit/extensions/TestSuiteBuilder.h:
710 * include/cppunit/tools/XmlDocument.h:
711 * include/cppunit/tools/XmlElement.h: Fixed a few documentation bugs.
713 2002-08-28 Baptiste Lepilleur <blep@users.sourceforge.net>
715 * include/cppunit/Portability.h: added CPPUNIT_STATIC_CAST.
717 * include/cppunit/extensions/TestFixtureFactory.h: extracted from
718 HelperMacros.h. Added template class ConcretTestFixtureFactory.
720 * include/cppunit/extensions/TestSuiteBuilderContext.h:
721 * src/cppunit/TestSuiteBuilderContext.cpp: added. Context used
722 to add test case to the fixture suite. Prevent future
723 compatibility break for custom test API.
725 * include/cppunit/extensions/HelperMacros.h: mostly rewritten. No
726 longer use TestSuiteBuilder. Added support for abstract test fixture
727 through macro CPPUNIT_TEST_SUITE_END_ABSTRACT. Made custom test API
730 * examples/cppunittest/HelperMacrosTest.h:
731 * examples/cppunittest/HelperMacrosTest.cpp: updated against
732 HelperMacros.h changes.
734 2002-08-27 Baptiste Lepilleur <blep@users.sourceforge.net>
736 * CodingGuideLines.txt: updated for OS/390 C++ limitation.
738 * examples/cppunittests/MockFunctor.h: added. Mock Functor to help
741 * examples/cppunittests/MockProtector.h: qdded. Mock Protector to help
744 * examples/cppunittests/TestResultTest.h
745 * examples/cppunittests/TestResultTest.cpp: added tests for
746 pushProtector(), popProtector() and protect().
748 * include/cppunit/TestAssert.h: removed default message value from
749 assertEquals(). Caused compilation error on OS/390.
751 * include/cppunit/plugin/PlugInParameters.h:
752 * src/cppunit/PlugInParameters.cpp: renamed commandLine() to
755 * src/msvc6/testrunner/TestRunnerDlg.h:
756 * src/msvc6/testrunner/TestRunnerDlg.cpp: bug fix, disabled Browse
757 button while running tests.
759 2002-08-22 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
761 * cppunit.m4: Doc fix: MINIMUM-VERSION is not optional when using
764 2002-08-04 Baptiste Lepilleur <blep@users.sourceforge.net>
766 * src/cppunit/XmlDocument.cpp: fixed compatility bug with C++ builder.
768 * include/cppunit/plugin/Parameters.h: renamed PlugInParameters.h.
770 * src/cppunit/PlugInParameter.cpp: added. Implementation of class
773 * examples/DumperPlugIn/DumperPlugIn.cpp:
774 * examples/ClockerPlugIn/ClockerPlugIn.cpp:
775 * src/DllPlugInTester/CommandLineParser.h:
776 * src/DllPlugInTester/CommandLineParser.cpp:
777 * include/cppunit/plugin/TestPlugInDefaultImpl.h:
778 * src/cppunit/TestPlugInDefaultImpl.cpp:
779 * include/cppunit/plugin/PlugInManager.h:
780 * src/cppunit/PlugInManager.cpp: updated against PlugInParameter
783 2002-08-03 Baptiste Lepilleur <blep@users.sourceforge.net>
785 * include/cppunit/XmlOutputterHook.h: integrated Stephan Stapel
786 documentation update.
788 2002-08-03 Baptiste Lepilleur <blep@users.sourceforge.net>
790 * include/cppunit/Exception.h:
791 * src/cppunit/Exception.h: added setMessage().
793 * include/cppunit/Protector.h:
794 * src/cppunit/Protector.cpp: added class ProtectorGuard. Change the
795 reportXXX() method to support Exception passing and SourceLine.
797 * include/cppunit/TestCaller.h: removed 'expect exception' features.
798 It is now handled by ExceptionTestCaseDecorator and TestCaller no
799 longer need default template argument support.
801 * include/cppunit/TestCase.h:
802 * include/cppunit/extensions/TestCaller.h: runTest() is now public
803 instead of protected, so that it can be decorated.
805 * include/cppunit/TestResult.h:
806 * src/cppunit/TestResult.h: added pushProtector() and popProtector()
807 methods. This allow user to specify their own exception trap when
810 * include/cppunit/extensions/TestDecorator.h:
811 * src/cppunit/TestDecorator.cpp: added. Extracted from TestDecorator.h.
812 The test passed to the constructor is now owned by the decorator.
814 * include/cppunit/extensions/TestCaseDecorator.h:
815 * src/cppunit/TestCaseDecorator.cpp: added. Decorator for TestCase
816 setUp(), tearDown() and runTest().
818 * include/cppunit/extensions/ExceptionTestCaseDecorator.h: added.
819 TestCaseDecorator to expect that a specific exception is thrown.
821 * include/cppunit/extensions/HelperMacros.h: updated against TestCaller
824 * src/cppunit/DefaultFunctor.h: fixed bug (did not return underlying
827 * src/cppunit/ProtectorChain.cpp: fixed bug in chaing return code.
829 * src/cppunit/DefaultFunctor.h: fixed bug.
831 * src/msvc6/testrunner/ActiveTest.h:
832 * src/msvc6/testrunner/ActiveTest.cpp: updated against
833 TestCaseDecorator ownership policy change. Moved inline functions
836 * examples/cppunittest/TestSetUpTest.cpp: updated to use MockTestCase
837 and against the new ownership policy.
839 * examples/cppunittest/TestDecoratorTest.cpp:
840 * examples/cppunittest/RepeatedTestTest.cpp: updated against
841 TestDecorator ownership policy change.
843 * examples/cppunittest/ExceptionTestCaseDecoratorTest.h:
844 * examples/cppunittest/ExceptionTestCaseDecoratorTest.cpp: added. Unit
845 tests for ExceptionTestCaseDecoratorTest.
847 2002-07-16 Baptiste Lepilleur <blep@users.sourceforge.net>
849 * include/cppunit/Protector.h:
850 * src/cppunit/Protector.cpp: added. Base class for protectors.
852 * src/cppunit/DefaultProtector.h:
853 * src/cppunit/DefaultProtector.cpp: added. Implementation of the default
854 protector used to catch std::exception and any other exception.
856 * src/cppunit/ProtectorChain.h:
857 * src/cppunit/ProtectorChain.cpp: added. Implementation of a chain of
858 protector, allowing catching custom exception and implementation of
861 * src/cppunit/TestCase.cpp:
862 * src/cppunit/TestResult.cpp: updated to use protector.
864 2002-07-14 Baptiste Lepilleur <blep@users.sourceforge.net>
866 * CodingGuideLines.txt: added. CppUnit's coding guidelines for portability.
868 * include/cppunit/portability/CppUnitStack.h: added. wrapper for std::stack.
870 * include/cppunit/portability/CppUnitSet.h: added. wrapper for std::set.
872 * include/cppunit/ui/text/TestRunner.h: fixed namespace definition for
873 deprecated TestRunner.
875 * include/cppunit/TestAssert.h:
876 * src/cppunit/TestAssert.cpp: removed old deprecated functions that did
877 not use SourceLine. Moved assertEquals() and assertDoubleEquals() into
880 * src/cppunit/TestFactoryRegistry.cpp: use CppUnitMap instead of std::map.
882 * src/DllPlugInTester/CommandLineParser.h: use CppUnitDeque instead
885 * examples/cppunittest/*.h:
886 * examples/cppunittest/*.cpp: removed all usage of CppUnitTest namespace.
887 Everything is now in global space.
890 * examples/*/*.cpp: replaced usage of CppUnit:: with CPPUNIT_NS::.
892 * examples/ClockerPlugIn/ClockerModel.h: use CppUnit STL wrapper instead
895 2002-07-13 Baptiste Lepilleur <blep@users.sourceforge.net>
897 * include/cppunit/ui/text/TestRunner.h:
898 * src/cppunit/TextTestRunner.cpp: Renamed TextUi::TestRunner
899 TextTestRunner and moved it to the CppUnit namespace. Added
900 a deprecated typedef for compatibility with previous version.
902 * include/cppunit/ui/text/TextTestRunner.h: added.
904 * include/cppunit/ui/mfc/TestRunner.h:
905 * src/cppunit/msvc6/testrunner/TestRunner.cpp: Renamed MfcUi::TestRunner
906 MfcTestRunner. Added deprecated typedef for compatibility. Renamed
907 TestRunner.cpp to MfcTestRunner.cpp.
909 * include/cppunit/ui/mfc/MfcTestRunner.h: added.
911 * include/cppunit/ui/qt/TestRunner.h:
912 * src/qttestrunner/TestRunner.cpp: renamed QtUi::TestRunner QtTestRunner
913 and moved it to CppUnit namespace. Added a deprecated typedef for
914 compatibility. Renamed TestRunner.cpp to QtTestRunner.cpp.
916 * include/cppunit/ui/qt/TestRunner.h:
917 * src/qttestrunner/TestRunner.h: Moved TestRunner to CppUnit namespace
918 and renamed it QtTestRunner. Added deprecated typedef for compatibility.
920 * include/cppunit/Asserter.h:
921 * src/cppunit/Asserter.cpp: changed namespace Asserter to a struct and
922 made all methods static.
924 * include/cppunit/extensions/HelperMacros.h:
925 * include/cppunit/extensions/SourceLine.h:
926 * include/cppunit/extensions/TestAssert.h:
927 * include/cppunit/extensions/TestPlugIn.h:
928 * include/cppunit/Portability.h: changed CPPUNIT_NS(symbol) to a
929 symbol macro that expand either to CppUnit or nothing. The symbol is
930 no longer a parameter.
932 * include/cppunit/portability/CppUnitVector.h:
933 * include/cppunit/portability/CppUnitDeque.h:
934 * include/cppunit/portability/CppUnitMap.h: added. STL Wrapper for
935 compilers that do not support template default argumenent and need
936 the allocator to be passed when instantiating STL container.
938 * examples/cppunittest/*.h:
939 * examples/cppunittest/*.cpp:
940 * src/msvc6/testrunner/*.h:
941 * src/msvc6/testrunner/*.cpp:
942 * src/msvc6/testpluginrunner/*.h:
943 * src/msvc6/testpluginrunner/*.cpp:
944 * src/qttestrunner/*.h:
945 * src/qttestrunner/*.cpp: replaced occurence of CppUnit:: by CPPUNIT_NS.
947 * src/cppunit/TestSuite.h:
948 replaced occurence of std::vector by CppUnitVector.
950 2002-07-12 Baptiste Lepilleur <blep@users.sourceforge.net>
952 * include/cppunit/config/Portability.h: If the compiler does not support
953 namespace (CPPUNIT_HAVE_NAMESPACES=0), define CPPUNIT_NO_STD_NAMESPACE
954 and CPPUNIT_NO_NAMESPACE. If CPPUNIT_NO_STD_NAMESPACE is defined, then
955 CppUnit assumes that STL are in the global namespace. If
956 CPPUNIT_NO_NAMESPACE is defined, then CppUnit classes are placed in the
957 global namespace instead of the CppUnit namespace.
959 * include/cppunit/config/config-bcb5.h:
960 * include/cppunit/config/config-msvc6.h: added definition of macro
961 CPPUNIT_HAVE_NAMESPACES.
963 * include/cppunit/tools/StringTools.h: use CPPUNIT_WRAP_COLUMN as default
964 parameter value for wrap().
966 * include/cppunit/*/*.h:
967 * src/cppunit/*.cpp: changed all CppUnit namespace declaration to use
968 macros CPPUNIT_NS_BEGIN and CPPUNIT_NS_END. Also, changed reference
969 to CppUnit namespace (essentially in macros) using CPPUNIT_NS macro.
972 * doc/CppUnit-Win.dox: updated doxygen configuration files so that
973 CPPUNIT_NS_BEGIN and CPPUNIT_NS_END macros are expanded. This help
974 generates the documentation using the CppUnit namespace.
976 2002-07-11 Baptiste Lepilleur <blep@users.sourceforge.net>
978 * include/cppunit/Portability.h: added macro CPPUNIT_CONST_CAST.
980 * src/cppunit/Exception.cpp:
981 * src/cppunit/Test.cpp:
982 * examples/cppunittest/MockTestCase.cpp: replaced usage of const_cast with
985 * include/cppunit/Test.h:
986 * src/cppunit/Test.cpp: made findTestPath(), findTest() and resolvePath()
989 2002-07-10 Baptiste Lepilleur <blep@users.sourceforge.net>
991 * include/cppunit/extensions/AutoRegisterSuite.h:
992 * include/cppunit/extensions/Orthodox.h:
993 * include/cppunit/extensions/TestSuiteBuilder.h:
994 * include/cppunit/extensions/TestSuiteFactory.h:
995 * include/cppunit/TestCaller.h:
996 * examples/hierarchy/BoardGameTest.h:
997 * examples/hierarchy/ChessTest.h: replaced usage of 'typename' in template
998 declaration with 'class'.
1000 * include/cppunit/ui/text/TestRunner.h:
1001 * src/cppunit/TextTestRunner.cpp: updated to use the generic TestRunner.
1002 Removed methods runTestByName() and runTest(). Inherits
1003 CppUnit::TestRunner.
1005 * include/cppunit/extensions/TestSuiteBuilder.h: removed templatized method
1006 addTestCallerForException(). It is no longer used since release 1.9.8.
1008 * examples/cppunittest/MockTestCase.h
1009 * examples/cppunittest/MockTestCase.cpp: removed the usage of 'mutable'
1012 2002-07-04 Baptiste Lepilleur <blep@users.sourceforge.net>
1014 * src/msvc6/DSPlugIn/DSPlugIn.dsp: updated so that only the release
1015 configuration get copied to the lib/ directory.
1017 2002-07-03 Baptiste Lepilleur <blep@users.sourceforge.net>
1019 * include/cppunit/XmlOutputter.h: fixed XmlOutputter constructed default
1020 value initializatino which caused compilation error with BC5.
1022 * src/cppunit/PlugInManager.cpp: added missing CPPUNIT_NO_TESTPLUGIN guard.
1024 * src/msvc6/testrunner/TestRunner.dsp:
1025 * src/msvc6/testrunner/TestRunner.rc:
1026 * src/msvc6/testrunner/TestRunnerDlg.cpp:
1027 * src/msvc6/testrunner/TestRunnerDlg.h:
1028 * src/msvc6/testrunner/TreeHierarchyDlg.cpp:
1029 * src/msvc6/testrunner/TreeHierarchyDlg.h:
1030 * src/msvc6/testpluginrunner/TestPlugInRunner.dsp:
1031 * src/msvc6/testpluginrunner/TestPlugInRunner.rc:
1032 * src/msvc6/testpluginrunner/TestPlugInRunnerApp.cpp:
1033 * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.cpp:
1034 * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.h: applied Steven Mitter
1035 patch to fix bug #530426 (conflict between TestRunner and host
1036 application's resources). Adapted patch to compile work with Unicode.
1038 * src/msvc6/testrunner/ResourceLoaders.h:
1039 * src/msvc6/testrunner/ResourceLoaders.cpp:
1040 * src/msvc6/testrunner/Change-Diary-ResourceBugFix.txt: added, from
1041 Steven Mitter's patch. Simplified loadCString() to compile with Unicode.
1043 * src/cppunit/cppunit.dsp:
1044 * src/cppunit/cppunit_dll.dsp:
1045 * src/DllPlugInTester/DllPlugInTester.dsp:
1046 * src/msvc6/testrunner/TestRunner.dsp:
1047 * src/msvc6/testpluginrunner/TestPlugInRunner.dsp: all lib, dll and exe are
1048 now created in the intermediate directory. A post-build rule is used to
1049 copy them to the lib/ directory.
1051 2002-06-17 Baptiste Lepilleur <blep@users.sourceforge.net>
1053 * include/cppunit/AdditionalMessage.h:
1054 * src/cppunit/AdditionalMessage.cpp: added. Class to help passing
1055 additional message parameter.
1057 * include/cppunit/Asserter.h: added makeExpected(), makeActual() and
1058 makeNotEqualMessage(). Removed methods made unnecessary by the
1059 use of AdditionalMessage.
1061 * include/cppunit/Portability.h: added CPPUNIT_WRAP_COLUMN to define
1062 CppUnit default wrap column.
1064 * src/cppunit/CompilerOutputter.cpp: use CPPUNIT_WRAP_COLUMN instead
1065 of hard-coded value.
1067 2002-06-16 Baptiste Lepilleur <blep@users.sourceforge.net>
1069 * bumped version to 1.9.9
1073 * include/cppunit/plugin/TestPlugIn.h: updated documentation.
1075 * include/cppunit/tools/XmlDocument.h: updated documentation.
1077 * include/cppunit/tools/StringTools.h:
1078 * src/cppunit/StringTools.cpp: added split() and wrap() functions.
1080 * include/cppunit/CompilerOutputter.h:
1081 * src/cppunit/CompilerOutputter.cpp: extracted wrap() and
1082 splitMessageIntoLines() to StringTools.
1084 * include/cppunit/XmlOutputterHook.h:
1085 * src/cppunit/XmlOutputterHook.cpp: removed rooNode parameter from
1086 beginDocument() and endDocument(). It can be retreive from document.
1087 Renamed 'node' occurences to 'element'.
1089 * include/cppunit/XmlOutputter.h:
1090 * src/cppunit/XmlOutputter.cpp: updated against
1091 XmlOutputterHook changes. Renamed 'node' occurences to 'element'.
1093 * src/cppunit/Message.cpp:
1094 * src/cppunit/XmlElement.cpp: added missing include <stdexcept>
1096 * examples/ClockerPlugIn/ClockerXmlHook.h:
1097 * examples/ClockerPlugIn/ClockerXmlHook.cpp: updated against
1098 XmlOutputterHook changes.
1100 * examples/cppunittest/MessageTest.cpp: removed std::string() from
1101 assertion. Somehow gcc can't parse it. Added missing include <stdexcept>.
1103 * examples/cppunittest/XmlElement.cpp: added missing include <stdexcept>.
1105 * examples/cppunittest/XmlElementTest.h:
1106 * examples/cppunittest/XmlElementTest.cpp: Renamed 'node' occurences
1109 * examples/cppunittest/XmlOutputterTest.cpp: updated against
1110 XmlOutputterHook changes.
1112 * examples/cppunittest/StringToolsTest.h:
1113 * examples/cppunittest/StringToolsTest.cpp: added. Unit tests for
1114 StringTools. Turn out that VC++ dismiss empty lines in tools output,
1115 which is the reason why empty lines where not printed in
1118 2002-06-14 Baptiste Lepilleur <blep@users.sourceforge.net>
1120 * include/cppunit/plugin/PlugInManager.h:
1121 * src/cppunit/PlugInManager.cpp: added two methods to use the plug-in
1122 interface for Xml Outputter hooks.
1124 * include/cppunit/plugin/TestPlugIn.h: added two methods to the plug-in
1125 interface for Xml Outputter hooks.
1127 * include/cppunit/plugin/TestPlugInAdapter.h:
1128 * src/cppunit/plugin/TestPlugInAdapter.cpp: renamed TestPlugInDefaultImpl.
1129 Added empty implementation for Xml outputter hook methods.
1131 * include/cppunit/tools/StringTools.h:
1132 * src/cppunit/tools/StringTools.cpp: added. Functions to manipulate string
1133 (conversion, wrapping...)
1135 * include/cppunit/tools/XmlElement.h:
1136 * src/cppunit/XmlElement.cpp: renamed addNode() to addElement(). Added
1137 methods to walk and modify XmlElement (for hook). Added documentation.
1140 * include/cppunit/XmlOutputter.h:
1141 * src/cppunit/XmlOutputter.cpp: added hook calls & management.
1143 * include/cppunit/XmlOutputterHook.h:
1144 * src/cppunit/XmlOutputterHook.cpp: added. Hook to customize XML output.
1146 * src/DllPlugInTester/DllPlugInTester.cpp: call plug-in XmlOutputterHook
1147 when writing XML output. Modified so that memory is freed before
1148 unloading the test plug-in (caused crash when freeing the XmlDocument).
1150 * examples/ReadMe.txt:
1151 * examples/ClockerPlugIn/ReadMe.txt: added details about the plug-in
1152 (usage, xml content...)
1154 * examples/ClockerPlugIn/ClockerModel.h:
1155 * examples/ClockerPlugIn/ClockerModel.cpp: extracted from ClockerListener.
1156 Represents the test hierarchy and tracked time for each test.
1158 * examples/ClockerPlugIn/ClockerListener.h:
1159 * examples/ClockerPlugIn/ClockerListener.cpp: extracted test hierarchy
1160 tracking to ClockerModel. Replaced the 'flat' view option with a 'text'
1161 option to print the timed test tree to stdout.
1163 * examples/ClockerPlugIn/ClockerPlugIn.cpp: updated to hook the XML
1164 output and use the new classes.
1166 * examples/ClockerPlugIn/ClockerXmlHook.h:
1167 * examples/ClockerPlugIn/ClockerXmlHook.cpp: added. XmlOutputterHook to
1168 includes the timed test hierarchy and test timing in the XML output.
1170 * examples/cppunittest/XmlElementTest.h:
1171 * examples/cppunittest/XmlElementTest.cpp: added new test cases.
1173 * examples/cppunittest/XmlOutputterTest.h:
1174 * examples/cppunittest/XmlOutputterTest.cpp: added tests for
1177 2002-06-14 Baptiste Lepilleur <blep@users.sourceforge.net>
1179 * src/cppunit/TypeInfoHelper.cpp: added work around for bug #565481.
1180 gcc 3.0 RTTI name() returns the type prefixed with a number (the
1181 length of the type). The work around strip the number.
1183 * src/msvc6/testpluginrunner/TestPlugInRunnerApp.cpp: registry key is now
1184 set. Allow to save settings.
1186 * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.h:
1187 * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.cpp: added layout
1188 initialization for resizing.
1190 * src/msvc6/testpluginrunner/TestPlugRunner.rc:
1191 * src/msvc6/testpluginrunner/TestPlugInRunner.dsp: added TestRunner
1192 project files. Somehow I can't get cdxCDynamicDialog to compile
1193 as a MFC extension. Included all sources files and resources
1194 as a very dirt work around.
1196 * src/msvc6/testrunner/TestRunnerDlg.h:
1197 * src/msvc6/testrunner/TestRunnerDlg.cpp:
1198 * src/msvc6/testrunner/TestRunnerModel.h: those classes are no longer
1199 exported in the MFC extension. See TestPlugInRunner issue with
1202 * include/cppunit/Message.h:
1203 * include/cppunit/TestPath.h:
1204 * include/cppunit/TestResult.h:
1205 * include/cppunit/TestResultCollector.h:
1206 * include/cppunit/TestSuite.h:
1207 * include/cppunit/TestFactoryRegistry.h:
1208 * include/cppunit/XmlElement.h:
1209 * include/cppunit/TypeInfoHelper.h: commented out STL template export
1210 in DLL. This caused conflicts when instantiting the same template in
1213 2002-06-14 Baptiste Lepilleur <blep@users.sourceforge.net>
1215 * src/cppunit/CompilerOutputter.cpp: fixed bug #549762 (line wrap).
1217 * src/msvc6/testrunner/DynamicWindow/*: added. Dynamic Window library
1218 from Hans Bühler (hans.buehler@topmail.de) to resize window.
1220 * src/msvc6/testrunner/TestRunnerModel.h:
1221 * src/msvc6/testrunner/TestRunnerModel.cpp: removed dialog bounds from
1222 settings. Added public registry keys for cppunit, main dialog, and
1225 * src/msvc6/testrunner/TreeHierarchyDlg.h:
1226 * src/msvc6/testrunner/TreeHierarchyDlg.cpp: dialog is now resizable.
1227 Window placement is stored and restored.
1229 * src/msvc6/testrunner/TestRunnerDlg.h:
1230 * src/msvc6/testrunner/TestRunnerDlg.cpp: replaced dialog resizing code
1231 by usage of Hans Bühler's Dynamic Window library. Dialog placement
1232 is stored/restored by that library. ProgressBar is now a child window.
1233 Added edit field to see the details of the failure. List on show
1234 the short description of the failure.
1236 * src/msvc6/testrunner/ProgressBar.h:
1237 * src/msvc6/testrunner/ProgressBar.cpp: is now a CWnd.
1239 * src/msvc6/testrunner/TestRunner.rc: named all static fill ID for resizing.
1240 Added an invisble static field for progress bar placement.
1242 2002-06-13 Baptiste Lepilleur <blep@users.sourceforge.net>
1244 * doc/other_documentation.dox: fixed some typos.
1246 * include/cppunit/NotEqualException.h:
1247 * src/cppunit/NotEqualException.cpp: removed.
1249 * include/cppunit/Exception.h:
1250 * src/cppunit/Exception.cpp: removed 'type' related stuffs.
1252 * include/cppunit/TextTestResult.h:
1253 * src/cppunit/TextTestResult.cpp: delegate printing to TextOutputter.
1255 * examples/simple/ExampleTestCase.h:
1256 * examples/simple/ExampleTestCase.cpp: reindented.
1258 * src/qttestrunner/build:
1259 * src/qttestrunner/qttestrunner.pro:
1260 * src/qttestrunner/TestBrowserDlgImpl.h:
1261 * src/qttestrunner/TestRunnerModel.h: applied Thomas Neidhart's patch,
1262 'Some minor fixes to compile QTTestrunner under Linux.'.
1264 2002-06-13 Baptiste Lepilleur <blep@users.sourceforge.net>
1266 * include/cppunit/Asserter.h:
1267 * src/cppunit/Asserter.cpp: added functions that take a Message as a
1268 parameter. Existing function have a short description indicating
1269 an assertion failure.
1271 * include/cppunit/CompilerOuputter.h:
1272 * src/cppunit/CompilerOuputter.cpp: removed printNotEqualMessage() and
1273 printDefaultMessage(). Updated to use Message.
1275 * include/cppunit/Message.h:
1276 * src/cppunit/Message.cpp: added. Represents a message associated to an
1279 * include/cppunit/Exception.h:
1280 * src/cppunit/Exception.cpp: the message associated to the exception is now
1281 stored as a Message instead of a string.
1283 * include/cppunit/NotEqualException.cpp: constructs a Message instead of a
1286 * include/cppunit/TestAssert.h:
1287 * src/cppunit/TestAssert.cpp: updated to use Asserter functions that
1288 take a message when pertinent (CPPUNIT_FAIL...).
1290 * include/cppunit/TestCaller.h:
1291 * src/cppunit/TestCaller.cpp: exception not caught failure has a better
1294 * src/cppunit/TestCase.cpp: better short description when setUp() or
1297 * src/msvc6/testrunner/TestRunnerDlg.cpp: replace '/n' in failure message
1300 * examples/cppunittest/ExceptionTest.cpp:
1301 * examples/cppunittest/NotEqualExceptionTest.cpp:
1302 * examples/cppunittest/TestCallerTest.cpp:
1303 * examples/cppunittest/TestFailureTest.cpp:
1304 * examples/cppunittest/TestResultCollectorTest.h:
1305 * examples/cppunittest/TestResultCollectorTest.cpp:
1306 * examples/cppunittest/TestResultTest.cpp:
1307 * examples/cppunittest/XmlOutputterTest.h:
1308 * examples/cppunittest/XmlOutputterTest.cpp: updated to use Exception/Message.
1310 * examples/cppunittest/MessageTest.h:
1311 * examples/cppunittest/MessageTest.cpp: added. Unit test for Message.
1313 2002-06-11 Baptiste Lepilleur <blep@users.sourceforge.net>
1315 * install-unix: added some hints extracted from bug #544684 on how to compile
1316 for Solaris/Forte C++ compiler.
1318 * TODO: cleaned-up and added new things.
1320 * include/cppunit/extensions/HelperMacros.h: CPPUNIT_TEST_SUITE now declares
1321 a class named ThisTestFixtureFactory which is a wrapper for the fixture
1322 factory. This removes the need to cast the fixture to the correct type when
1323 using the factory. Updated other macros implementation to use this new
1324 factory. Modified CPPUNIT_TEST_CUSTOM(S) macros to use this new factory
1325 class. Added macro CPPUNIT_TEST_ADD to help create new macros like
1328 * examples/cppunittest/HelperMacrosTest.h:
1329 * examples/cppunittest/HelperMacrosTest.cpp: added unit tests for
1330 CPPUNIT_TEST_CUSTOM, CPPUNIT_TEST_CUSTOMS and CPPUNIT_TEST_ADD.
1332 2002-06-01 Baptiste Lepilleur <blep@users.sourceforge.net>
1334 * doc/cookbook.dox: fixed bug.
1336 * install-unix: added compilation instruction for Solaris/Sun 6.0
1338 2002-05-25 Baptiste Lepilleur <blep@users.sourceforge.net>
1340 * include/cppunit/extensions/TestSuiteBuilder.h: updated to use TestNamer. Removed
1341 template method addTestCallerForException() which should solve the compilation
1342 issue with Sun 5.0/6.0 compiler.
1344 * include/cppunit/extensions/HelperMacros.h: updated against TestSuiteBuilder
1345 change. Added CPPUNIT_TEST_CUSTOM and CPPUNIT_TEST_CUSTOMS to add custom
1346 tests to the fixture suite.
1348 * include/cppunit/extensions/TestNamer.h:
1349 * src/cppunit/TestNamer.cpp: added, TestNamer to name test case and fixture.
1351 2002-05-23 Baptiste Lepilleur <blep@users.sourceforge.net>
1353 * include/cppunit/XmlOutputter.h:
1354 * src/cppunit/XmlOutputter.cpp: extracted class XmlOutputter::Node to
1355 XmlElement. Extracted xml 'prolog' generation to XmlDocument.
1357 * include/cppunit/tools/XmlElement.h:
1358 * src/cppunit/tools/XmlElement.cpp: added, extracted from XmlOutputter::Node.
1360 * include/cppunit/tools/XmlDocument.h:
1361 * src/cppunit/tools/XmlDocument.cpp: added, extracted from XmlOutputter. Handle
1362 XML document prolog (encoding & style-sheet) and manage the root element.
1364 * src/DllPlugInTester/DllPlugInTester.cpp: bug fix, flag --xsl was ignored.
1366 * examples/cppunittest/XmlOutputterTest.h:
1367 * examples/cppunittest/XmlOutputterTest.cpp: updated for XmlOuputter changes.
1368 extracted tests for XmlOutputter::Node to XmlElementTest
1370 * examples/cppunittest/XmlElementTest.h:
1371 * examples/cppunittest/XmlElementTest.cpp: added, tests extracted from
1374 2002-05-21 Baptiste Lepilleur <blep@users.sourceforge.net>
1376 * src/msvc6/testrunner/MsDevCallerListCtrl.h:
1377 * src/msvc6/testrunner/MsDevCallerListCtrl.cpp:
1378 * src/msvc6/testrunner/Resource.h:
1379 * src/msvc6/testrunner/TestRunner.rc:
1380 * src/msvc6/testrunner/TestRunnerDlg.cpp:
1381 * src/msvc6/testrunner/TestRunnerModel.h:
1382 * src/msvc6/testpluginrunner/TestPlugInRunner.rc:
1383 * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.cpp:
1384 * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.h:
1385 * src/msvc6/testpluginrunner/TestPlugInRunnerModel.cpp: integrated patch from
1386 Marco Welti (Welti@GretagMacbeth.ch) with a few clean up.
1387 Display the name of the test being run during above the progress bar. Allow the
1388 VC++ add-ins to works with TestPlugInRunner (COM init). DLL name can be specified
1389 on the command line after flag '-testsuite'. Display wait cursor, clear and reload
1390 history when reloading DLL.
1392 * THANKS: added Marco Welti to the list.
1394 2002-05-07 Baptiste Lepilleur <blep@users.sourceforge.net>
1396 * src/DllPlugInTester/CommandLineParser.cpp: fixed compilation issue.
1398 * src/msvc6/TestRunner/ActiveTest.h:
1399 * src/msvc6/TestRunner/ActiveTest.cpp: reindented. bugfix: thread
1400 handle resource leak (bug #553424).
1402 2002-04-25 Baptiste Lepilleur <blep@users.sourceforge.net>
1404 * src/cppunit/XmlOutputter.cpp: bugfix, use ISO-8859-1 encoding if an
1405 empty string is given.
1407 * src/DllPlugInTester/CommandLineParser.h:
1408 * src/DllPlugInTester/CommandLineParser.cpp:
1409 * src/DllPlugInTester/DllPlugInTester.cpp: added option -w to wait for
1410 the user to press a key before exiting (Philippe Lavoie patch,
1413 2002-04-22 Baptiste Lepilleur <blep@users.sourceforge.net>
1415 * include/cppunit/plugin/DynamicLibraryManagerException.h: removed
1416 trailing ',' in enum.
1418 * examples/ClockerPlugIn/ClockerListener.cpp: bugfix, average test
1419 case time computation.
1421 2002-04-21 Baptiste Lepilleur <blep@users.sourceforge.net>
1423 * bumped version to 1.9.7
1425 * comitted stuffs I forgot to in 1.9.6.
1427 2002-04-21 Baptiste Lepilleur <blep@users.sourceforge.net>
1429 * contrib/bc5/bcc-makefile.zip: updated, generic makefile for
1430 Borland 5.5, contributed by project cuppa.
1432 * examples/cppunittest/*Suite.h: integrated Jeffrey Morgan's patch,
1433 to remove warning with gcc.
1437 2002-04-21 Baptiste Lepilleur <blep@users.sourceforge.net>
1439 * src/DllPlugInTester/makefile.am: removed ld.so from LDADD flags.
1441 * src/DllPlugInTester/CommandLineParser.h:
1442 * src/DllPlugInTester/CommandLineParser.cpp: rewrote, fixed problem
1443 with double quotes in command line...
1445 * src/DllPlugInTester/CommandLineParserTest.h:
1446 * src/DllPlugInTester/CommandLineParserTest.cpp:
1447 * src/DllPlugInTester/DllPlugInTesterTest.cpp: added, unit tests for
1450 * src/msvc6/TestPlugIn/*: removed.
1452 * examples/Money/*: added. New 'hello world' example.
1454 * doc/Money.dox: added. Article that go along with the Money example.
1456 2002-04-21 Baptiste Lepilleur <blep@users.sourceforge.net>
1460 * src/cppunit/DynamicLibraryManager.cpp: bugfix: did not pass
1461 library name to exception.
1463 * include/cppunit/TestPath.h:
1464 * src/cppunit/TestPath.cpp: changed into value object.
1466 * src/cppunit/BeosDynamicLibraryManager.cpp: integrated patch from
1467 Shibu Yoshiki for BeOS ('cuppa' project team).
1469 * src/DllPlugInTester/CommandLineParser.h:
1470 * src/DllPlugInTester/CommandLineParser.cpp: added. Command line
1473 * src/DllPlugInTester/DllPlugInTester.cpp: full command line support
1474 with parameters for plug-ins.
1476 * src/DllPlugInTester/makefile.am:
1477 * examples/simple/makefile.am:
1478 * examples/cppunittest/makefile.am: integrated Jeffrey Morgan's patch,
1479 Unix side should be working again.
1481 * examples/ReadMe.txt: added. Brief description of each example.
1483 * examples/cppunittest/CppUnitTestPlugIn.cpp:
1484 * examples/cppunittest/CppUnitTestPlugIn.dsp: added. New project to
1485 build CppUnit's test suite as a test plug-in.
1487 * examples/cppunittest/CppUnitTestSuite.cpp: updated. Use new
1488 helper macros to create the test suite hierarchy.
1490 * examples/simple/simple_plugin.opt: added. Contains debug tab
1493 * examples/ClockerPlugIn/ClockerListener.cpp:
1494 * examples/ClockerPlugIn/ClockerListener.h:
1495 * examples/ClockerPlugIn/Timer.cpp:
1496 * examples/ClockerPlugIn/Timer.h:
1497 * examples/ClockerPlugIn/WinNtTimer.cpp:
1498 * examples/ClockerPlugIn/WinNtTimer.h:
1499 * examples/ClockerPlugIn/ClockerPlugIn.cpp:
1500 * examples/ClockerPlugIn/ClockerPlugIn.dsp: added. test listener
1501 plug-in that times tests.
1503 * examples/DumperPlugIn/DumperListener.cpp:
1504 * examples/DumperPlugIn/DumperListener.h:
1505 * examples/DumperPlugIn/DumperPlugIn.cpp:
1506 * examples/DumperPlugIn/DumperPlugIn.dsp: added. test listener
1507 plug-in that dump the test tree.
1510 2002-04-19 Baptiste Lepilleur <blep@users.sourceforge.net>
1512 * src/cppunit/PlugInManager.cpp: fixed bug in unload().
1514 * include/cppunit/TypeInfoHelper.h:
1515 * src/cppunit/TypeInfoHelper.cpp: Implementation is now always available
1516 is CPPUNIT_HAVE_RTTI is not 0. This removes the need to use
1517 different libraries. CPPUNIT_USE_TYPEINFO_NAME can be set on a
1518 case by case basis for HelperMacros.
1520 * src/cppunit/TestFactoryRegistry.cpp: removed unused include of
1523 * include/cppunit/TextTestProgressListener.h:
1524 * src/cppunit/TextTestProgressListener.cpp: used endTest() instead
1525 of done() to finalize.
1527 * src/msvc6/TestPlugInRunner/TestPlugIn.h:
1528 * src/msvc6/TestPlugInRunner/TestPlugIn.cpp: updated to use the
1529 new test plug-in system.
1531 * examples/simple/SimplePlugIn.cpp:
1532 * examples/simple/simple_plugin.dsp: crossplatform test plug-in
1533 example using 'simple'.
1535 * examples/msvc6/EasyTestPlugIn/*: projects replaced with the
1536 crossplatform projecct examples/simple/simple_plugin.dsp.
1538 2002-04-19 Baptiste Lepilleur <blep@users.sourceforge.net>
1540 * configure.in: added some makefile.am
1542 * contrib/readme.txt: updated.
1544 * contrib/bc5/bc5-makefile.zip: added borland 5.5 makefile. Contributed by
1547 * src/cppunit/TypeInfoHelper.cpp: fixed implementation to be more
1551 2002-04-18 Baptiste Lepilleur <blep@users.sourceforge.net>
1553 * bumped version to 1.9.3
1555 * FAQ: added question about 4786 warning on VC++.
1559 * contrib/msvc/readme.txt: moved to contrib/readme.txt.
1561 * contrib/xml-xsl/report.xsl: added XML style sheet contributed by
1562 'cuppa' project team (http://sourceforge.jp/projects/cuppa/)
1564 * examples/cppunittest/TestResultTest.h:
1565 * examples/cppunittest/TestResultTest.cpp: added tests for
1566 startTestRun()/endTestRun().
1568 * examples/simple/*: added. A simple example.
1570 * include/cppunit/BriefTestProgressListener.h:
1571 * src/cppunit/BriefTestProgressListener.cpp: added. Verbose progess listener
1572 that print the test name before running the test.
1574 * include/cppunit/TestListener.h: added startTestRun()/endTestRun().
1576 * include/cppunit/TestResult.h:
1577 * src/cppunit/TestResult.cpp: added runTest(), to be called to run
1578 a test by test runner.
1580 * src/cppunit/TextTestRunner.cpp:
1581 * src/cppunit/TestRunner.cpp: updated to use TestResult::runTest().
1583 * include/cppunit/plugin/PlugInManager.h:
1584 * src/cppunit/PlugInManager.cpp: added. Managers for all loaded plug-ins.
1586 * include/cppunit/plugin/TestPlugInDefaultImpl.h:
1587 * src/cppunit/TestPlugInDefaultImpl.cpp: renamed TestPlugInAdapter. All
1588 implementations are empty.
1590 * include/cppunit/plugin/TestPlugInSuite.h: removed.
1591 * src/cppunit/TestPlugInSuite.cpp: removed. Replaced by PlugInManager.
1593 * include/cppunit/plugin/TestPlugIn.h: rewrote the plug-in interface to
1594 provide more versatility. updated macros to match new interface.
1596 * include/cppunit/extensions/TestFactoryRegistry.h:
1597 * include/cppunit/extensions/TestFactoryRegistry.cpp: Added unregisterFactory().
1598 Added convenience method addRegistry(). Rewrote registry life cycle
1599 management. AutoRegisterSuite can now detect that the registry has been
1600 destroy and not call to it to unregister its test factory.
1602 * include/cppunit/extensions/AutoRegisterTest.h: on destruction, the registered
1603 factory is unregistered from the registry.
1605 * include/cppunit/extensions/HelperMacros.h: added macros
1606 CPPUNIT_REGISTRY_ADD_TO_DEFAULT and CPPUNIT_REGISTRY_ADD to help
1607 build test suite hierarchy.
1609 * src/cppunit/msvc/DllPlugInTester/*: moved to src/cppunit/DllPlugInTester/.
1611 * src/cppunit/DllPlugInTester/DllPlugInTester.cpp: removed UNICODE stuffs. Use
1612 the PlugInManager instead of PlugInTestSuite. Simplified: only one test on
1613 command line, but many DLL can be specified. Added configurations to link
1614 against cppunit dll, those are now the default configuration (static linking
1615 don't make much sense for plug-in).
1617 2002-04-15 Baptiste Lepilleur <blep@users.sourceforge.net>
1623 * configure.in: added include/cppunit/config/Makefile and
1624 include/cppunit/plugin/Makefile to the list of target.
1626 * doc/CppUnit-win.dox: enabled generation of HTML Help documentation.
1628 * include/cppunit/config/Makefile.am:
1629 * include/cppunit/plugin/Makefile.am: added.
1631 * include/cppunit/config-bcb5.h:
1632 * include/cppunit/config-msvc6.h:
1633 * include/cppunit/config-mac.h: moved to include/cppunit/config/.
1635 * include/cppunit/Portability.h: updated config files location. Added macros
1636 CPPUNIT_STRINGIZE and CPPUNIT_JOIN (implementation adapted from boost.org).
1637 Added macro CPPUNIT_MAKE_UNIQUE_NAME.
1639 * include/cppunit/Test.h: modified methods order.
1641 * include/cppunit/extensions/HelperMacros.h: renamed macro
1642 __CPPUNIT_MAKE_UNIQUE_NAME to CPPUNIT_MAKE_UNIQUE_NAME and moved its
1643 definition to include/cppunit/Portability.h.
1645 * include/cppunit/extensions/TestDecorator.h: Inherits Test instead of TestLeaf.
1647 * include/cppunit/plugin/DynamicLibraryManager.h:
1648 * src/cppunit/DynamicLibraryManager.cpp: added. DLL manager (load & lookup
1651 * src/cppunit/BeOsDynamicLibraryManager.cpp:
1652 * src/cppunit/UnixDynamicLibraryManager.cpp:
1653 * src/cppunit/Win32DynamicLibraryManager.cpp: added. Implementation of
1654 platform dependent methods of DynamicLibraryManager.
1656 * include/cppunit/plugin/DynamicLibraryManagerException.h:
1657 * src/cppunit/DynamicLibraryManagerException.cpp: added. Exception thrown
1658 by DynamicLibraryManager.
1660 * include/cppunit/plugin/TestPlugIn.h: added. CppUnitTestPlugIn interface
1661 definition. Helper macros to implements plug-in.
1663 * include/cppunit/plugin/TestPlugInSuite.h:
1664 * src/cppunit/plugin/TestPlugInSuite.cpp: added. A suite to wrap a test
1667 * include/cppunit/plugin/TestPlugInDefaultImpl.h:
1668 * src/cppunit/TestPlugInDefaultImpl.cpp: added. A default implementation
1669 of the test plug-in interface.
1671 * src/msvc6/DllPlugInTester/DllPlugInTester.cpp: updated to use the
1674 * examples/cppunittest/TestResultCollectorTest.cpp: fixed typo.
1676 2002-04-14 Baptiste Lepilleur <blep@users.sourceforge.net>
1680 * include/cppunit/TestSucessListener.h:
1681 * src/cppunit/TestSucessListener.cpp: renamed TestSuccessListener
1684 * src/msvc6/DllPlugInTester/DllPlugInTester.cpp:
1685 * examples/cppunittest/TestResultCollectorTest.h:
1686 * examples/cppunittest/TestResultCollectorTest.cpp:
1687 * examples/cppunittest/XmlOutputterTest.h:
1688 * examples/cppunittest/XmlOutputterTest.cpp:
1689 * include/cppunit/CompilerOutputter.h:
1690 * include/cppunit/TestListener.h:
1691 * include/cppunit/XmlOutputter.h:
1692 * src/cppunit/XmlOutputter.cpp:
1693 * src/cppunit/CompilerOutputter.cpp: fixed 'success' typo (was misspelled
1696 * include/cppunit/TestResultCollector.h:
1697 * src/cppunit/TestResultCollector.cpp: updated (renaming of
1698 TestSucessListener).
1700 * src/cppunit/XmlOutputter.cpp:
1701 * examples/cppunittest/XmlOutputterTest.cpp: Changed SucessfulTests tag to
1704 2002-04-13 Baptiste Lepilleur <blep@users.sourceforge.net>
1706 * include/cppunit/XmlOutputter.h:
1707 * src/cppunit/XmlOutputter.cpp: Made XML output more human readable. Idented element.
1709 * examples/cppunittest/XmlUniformiser.h:
1710 * examples/cppunittest/XmlUniformiser.cpp:
1711 * examples/cppunittest/XmlUniformiserTest.cpp: modified to ignore trailing space
1712 at the end of element content.
1714 2002-04-13 Baptiste Lepilleur <blep@users.sourceforge.net>
1720 * doc/other_documentation.dox: addded new module for test plug-in.
1722 * include/msvc6/DSPlugin/TestRunnerDSPlugin.h:
1723 * include/msvc6/DSPlugin/TestRunnerDSPlugin_i.c: added. Those file are
1724 generated by project src/msvc/DSPlugin. They are provided to allow
1725 compilation of TestRunner without compiling DSPlugIn which does not
1728 * examples/examples.dsw: removed DSPlugIn for workspace (fail to build
1729 with VC++ 7). Added DllPlugInTester.dsp to workspace.
1731 * examples/msvc6/TestPlugIn/TestPlugIn.dsp: added post-build unit testing
1732 using the new DllPlugInTester.
1734 * examples/msvc6/EasyTestPlugIn/*: a new project that
1735 demonstrates the use of CPPUNIT_TESTPLUGIN_IMPL to create a test plug-in.
1737 * src/cppunit/cppunit.dsw:
1738 * src/TestPlugInRunner.dsw:
1739 * src/TestRunner.dsw: removed. Should use src/CppUnitLibraries.dsw instead.
1741 * include/cppunit/ui/text/TestRunner.h:
1742 * src/cppunit/TextTestRunner.cpp: removed findTestName() method. Replaced
1743 by Test::findTest().
1745 * src/msvc6/DSPlugIn/DSPlugIn.dsp:
1746 * src/msvc6/DSPlugIn/DSAddIn.h: changed include for add-in. MIDL generates
1747 files in sub-directory ToAddToDistribution. Generated file should be
1748 copied to include/msvc6/DSPlugin when modified. This remove the dependecy
1749 of MfcTestRunner on DSPlugIn.
1751 * src/msvc6/testrunner/ListCtrlFormatter.h:
1752 * src/msvc6/testrunner/ListCtrlFormatter.cpp: added GetNextColumnIndex().
1754 * src/msvc6/testrunner/src/TestRunnerDlg.h:
1755 * src/msvc6/testrunner/src/TestRunnerDlg.cpp: set column number in
1756 MsDevCallerListCtrl when initializing the list.
1758 * src/msvc6/testrunner/src/MsDevCallerListCtrl.h:
1759 * src/msvc6/testrunner/src/MsDevCallerListCtrl.cpp: column indexes for
1760 file and line number are no longer static. Added methods to set those
1761 indexes. Changed DSPlugIn header name.
1763 * include/msvc6/testrunner/TestPlugInInterface.h: fixed inclusion of
1764 windows header for WINAPI. Added macro CPPUNIT_TESTPLUGIN_IMPL to
1765 automatically implements a test plug-in.
1767 * src/msvc6/DllPlugInTester/*: added new project. A application to test DLL
1768 and report using CompilerOutputter. Target for post-build testing and
1772 2002-04-13 Baptiste Lepilleur <blep@users.sourceforge.net>
1774 * include/cppunit/CompilerOutputter.h:
1775 * src/cppunit/CompilerOutputter.h: deprecated defaultOuputter(). Added
1776 setLocationFormat() and format specifiation in constructor. A string
1777 that represent the location format is used to output the location.
1778 Default format is defined by CPPUNIT_COMPILER_LOCATION_FORMAT.
1780 * include/cppunit/config-msvc6.h:
1781 * include/cppunit/Portability.h: added CPPUNIT_COMPILER_LOCATION_FORMAT.
1782 Use gcc location format if VC++ is not detected.
1784 * include/cppunit/Test.h: fixed documentation.
1786 * include/cppunit/TestListener.h: added startSuite() and endSuite()
1787 callbacks. Added new example to documentation.
1789 * include/cppunit/TestResult.h:
1790 * src/cppunit/TestResult.cpp:
1791 * include/cppunit/TestComposite.h:
1792 * src/cppunit/TestComposite.cpp: Updated to inform the listeners.
1794 * src/qttestrunner/TestBrowserDlgImpl.cpp: used Test new composite
1795 interface instead of RTTI to explore the test hierarchy.
1797 * examples/cppunittest/MockTestListener.h:
1798 * examples/cppunittest/MockTestListener.cpp: updated,added support for
1799 startSuite() and endSuite().
1801 * examples/cppunittest/TestResultTest.h:
1802 * examples/cppunittest/TestResultTest.cpp: added tests for startSuite()
1805 2002-04-12 Baptiste Lepilleur <blep@users.sourceforge.net>
1807 * Makefile.am: added examples/qt to tar ball release.
1809 * TODO: heavily updated.
1811 * contrib/msvc/CppUnit*.wwtpl: changed base class for unit test to TestFixture.
1813 * include/cppunit/Test.h: removed toString() method. Not used by the framework
1814 and source of confusions with getName().
1815 Added getChildTestCount() and getChildTestAt(), introducing the composite pattern
1816 at top level. Added utility methods findTest() and findTestPath().
1818 * src/cppunit/Test.cpp: added. Implementation of new utility methods.
1820 * include/cppunit/TestCase.h:
1821 * src/cppunit/TestCase.cpp: inherits TestLeaf. Removed toString(), run(void) and
1822 defaultResult(). Removed default constructor.
1824 * src/cppunit/TestCase.cpp:
1825 * src/cppunit/TestSuite.cpp: fixed some includes that used "" instead of <>.
1827 * include/cppunit/TestComposite.h:
1828 * src/cppunit/TestComposite.cpp: added. Common implementation of Test for composite
1831 * include/cppunit/TestFailure.h:
1832 * src/cppunit/TestFailure.cpp: removed toString().
1834 * include/cppunit/TestLeaf.h:
1835 * src/cppunit/TestLeaf.cpp: added. Common implementation of Test for single test
1838 * include/cppunit/TestListener.h: added TimingListener example to documentation.
1840 * include/cppunit/TestPath.h:
1841 * src/cppunit/TestPath.cpp: added. List of test traversed to access a test in the
1844 * include/cppunit/TestRunner.h: added. Generic TestRunner.
1846 * src/cppunit/TestRunner.cpp: moved to TextTestRunner.cpp. Added new implementation
1847 of includecppunit/TestRunner.h.
1849 * include/cppunit/TestSuite.h:
1850 * src/cppunit/TestSuite.cpp: inherits TestComposite and implements new Test
1851 interface. Removed toString().
1853 * src/cppunit/TextTestRunner.cpp: moved from TestRunner.cpp. Implementation of
1854 include/cppunit/ui/text/TestRunner.h.
1856 * include/cppunit/extensions/RepeatedTest.h:
1857 * src/cppunit/RepeatedTest.cpp: removed toString().
1859 * include/cppunit/extensions/TestDecorator.h: inherits TestLeaf.
1862 * include/cppunit/XmlOutputter.h:
1863 * src/cppunit/XmlOutputter.cpp:
1864 * examples/cppunittest/XmlOutputterTest.cpp:
1865 * examples/cppunittest/XmlOutputterTest.h: XML outputter now escape node content.
1866 Add unit test for that bug (#540944). Added style sheet support. Modified
1867 XML structure: failure message as its own element.
1869 * src/msvc/testrunner/TestRunnerModel.h:
1870 * src/msvc/testrunner/TestRunnerModel.cpp: used Test::findTest() to find a test
1871 by name instead of using RTTI. Added toAnsiString() for convertion when
1872 compiling as UNICODE.
1874 * src/msvc/testrunner/TreeHierarchyDlg.h:
1875 * src/msvc/testrunner/TreeHierarchyDlg.cpp: used new composite interface of Test
1876 to explorer the test hierarchy instead of RTTI.
1878 * examples/cppunittest/TestPathTest.h:
1879 * examples/cppunittest/TestPathTest.cpp: added, unit tests for TestPath.
1881 * examples/cppunittest/TestCaseTest.h:
1882 * examples/cppunittest/TestCaseTest.cpp: added test for TestLeaf.
1884 * examples/cppunittest/TestSuiteTest.h:
1885 * examples/cppunittest/TestSuiteTest.cpp: added test for TestComposite and
1888 2002-04-11 Baptiste Lepilleur <blep@users.sourceforge.net>
1890 * configure.in: bumped version to 1.9.0
1892 * NEWS: added version 1.9.0
1894 2002-04-11 Baptiste Lepilleur <blep@users.sourceforge.net>
1896 * doc/FAQ: removed question about the Exception::operator =() problem.
1900 2002-04-11 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
1902 * include/cppunit/ui/mfc/Makefile.am:
1903 * include/cppunit/ui/qt/Makefile.am:
1904 * include/cppunit/ui/text/Makefile.am: Set the libcppunitincludedir
1905 variable. Correct case of header file ui/qt/Config.h.
1907 * configure.in: Output the new include/*/Makefiles.
1909 2002-04-10 Baptiste Lepilleur <blep@users.sourceforge.net>
1911 * Makefile.am: removed directory cppunitui from copy when making
1914 * include/cppunit/ui: added Makefile.am for dist and install.
1916 2002-04-10 Baptiste Lepilleur <blep@users.sourceforge.net>
1918 * include/cppunitui/: moved to include/cppunit/ui (fix unix
1922 * examples/cppunittest/CppUnitTestMain.cpp:
1923 * examples/msvc/CppUnitTestApp/HostApp.cpp:
1924 * examples/msvc/HostApp/HostApp.cpp:
1925 * examples/qt/Main.Cpp:
1926 * examples/src/cppunit/TestRunner.cpp:
1927 * examples/src/msvc6/TestRunner/TestRunner.cpp:
1928 * examples/src/qttestrunner/TestRunner.cpp: updated to use
1929 <cppunit/ui/...> instead of <cppunitui/...> in include directives.
1931 * doc/CppUnit-win.dox: generated documentation give the include
1932 path at the bottom of the page for each class.
1934 * NEWS: added compatibility break for 1.7.10 users.
1936 2002-04-05 Baptiste Lepilleur <blep@users.sourceforge.net>
1938 * examples/cppunittest/CppUnitTestMain.cpp: never wait for a key press.
1940 2002-04-04 Baptiste Lepilleur <blep@users.sourceforge.net>
1942 * NEW: added CPPUNIT_ASSERT_EQUAL_MESSAGE compatiblity break.
1944 * include/cppunit/TestAssert.h: changed arguments order for
1945 CPPUNIT_ASSERT_EQUAL_MESSAGE. 'message' is now the first argument
1946 instead of the last (like CPPUNIT_ASSERT_MESSAGE).
1948 * examples/cppunittest/MockTestCase.cpp:
1949 * examples/cppunittest/MockTestListener.cpp: updated to reflect
1950 change on CPPUNIT_ASSERT_EQUAL_MESSAGE.
1952 2002-03-28 Baptiste Lepilleur <blep@users.sourceforge.net>
1954 * configure.in: bumped version to 1.7.11
1956 2002-03-28 Baptiste Lepilleur <blep@users.sourceforge.net>
1958 * doc/cookbook.html: removed. Replaced by cookbook.doc.
1960 * doc/cookbook.dox: added, conversion of cookbook.html to Doxygen
1963 * doc/other_documentation.dox: added groups definition.
1965 * doc/Makefile.am: replaced cookbook.html by cookbook.dox
1967 * doc/Doxyfile.in: added predefined CPPUNIT_HAVE_CPP_SOURCE_ANNOTATION.
1968 Replaced cookbook.html by cookbook.dox.
1970 * include/cppunitui/mfc/TestRunner.h: added, extracted from
1971 include/msvc6/testrunner/TestRunner.h. Moved class TestRunner to
1972 namespace CppUnit::MfcUi.
1974 * include/msvc6/testrunner/TestRunner.h: deprecated. A simple
1975 typedef to CppUnit::MfcUi::TestRunner.
1977 * include/textui/TestRuner.h: added, extracted from
1978 include/cppunit/TextTestRunner.h.
1980 * src/cppunit/TextTestRunner.cpp: renamed TestRunner.cpp. Moved
1981 into namespace CppUnit::TextUi.
1983 * src/msvc6/testruner/TestRunner.cpp: moved into namespace
1986 * src/cppunit/CompilerOutputter.cpp: removed printing "- " before
1987 NotEqualException addional message, for consistency between
1988 different TestRunner (Mfc,Text...)
1990 * include/cppunit/Asserter.h:
1991 * include/cppunit/CompilerOutputter.h:
1992 * include/cppunit/Exception.h:
1993 * include/cppunit/NotEqualException.h:
1994 * include/cppunit/Outputter.h:
1995 * include/cppunit/SourceLine.h:
1996 * include/cppunit/TestAssert.h:
1997 * include/cppunit/TestCaller.h:
1998 * include/cppunit/TestFailure.h:
1999 * include/cppunit/TestFixture.h:
2000 * include/cppunit/TestListener.h:
2001 * include/cppunit/TestResult.h:
2002 * include/cppunit/TestResultCollector.h:
2003 * include/cppunit/TestSucessListener.h:
2004 * include/cppunit/TestSuite.h:
2005 * include/cppunit/TextTestProgressListener.h:
2006 * include/cppunit/TextTestRunner.h:
2007 * include/cppunit/XmlOutputter.h:
2008 * include/cppunit/extensions/AutoRegisterSuite.h:
2009 * include/cppunit/extensions/HelperMacros.h:
2010 * include/cppunit/extensions/TestFactoryRegistry.h:
2011 * include/cppunit/extensions/TestSuiteBuilder.h:
2012 * include/cppunit/extensions/TestSuiteFactory.h: doc
2013 update. organization in groups.
2015 * examples/msvc6/CppUnitTestApp/CppUnitTestApp.cpp:
2016 * examples/msvc6/HostApp/HostApp.cpp: updated to use
2017 CppUnit::MfcUi::TestRunner.
2019 * examples/cppunittest/CppUnitTestMain.cpp: updated to use
2020 CppUnit::TextUi::TestRunner.
2022 2002-03-27 Baptiste Lepilleur <blep@users.sourceforge.net>
2024 * include/msvc/testrunner/TestRunner.h: updated doc. reindented.
2026 * include/cppunit/Asserter.h:
2027 * include/cppunit/Asserter.cpp:
2028 * include/cppunit/TestResultCollector.h:
2029 * include/cppunit/TestResult.h:
2030 * include/cppunit/SynchronizedObject.h:
2031 * include/cppunit/extensions/TestCaller.h: doc update.
2033 * include/cppunitui/qt/TestRunner.h: doc update.
2035 2002-03-27 Baptiste Lepilleur <blep@users.sourceforge.net>
2037 * makefile.am: added src/CppUnitLibraries.dsw, new contribution, and
2040 * TODO: updated (doc).
2042 * contrib/msvc/AddingUnitTestMethod.dsm: added, submitted by
2043 bloodchen@hotmail.com.
2045 * constrib/msvc/readme.txt: updated.
2047 * include/cppunit/TestAsserter.h:
2048 * include/cppunit/SourceLine.h: updated doc.
2050 * include/cppunit/TestCaller.h: reindented. updated doc.
2052 * include/cppunit/extensions/HelperMacros.h: relaxed constraint on fixture.
2053 Fixture base class may be TestFixture instead of TestCase.
2055 * include/cppunit/TestCase.h:
2056 * src/cppunit/TestCase.h: TestCase inherits TestFixture for setUp() and
2057 tearDown() definition. Moved documentation to TestFixture.
2059 * include/cppunit/TestFixture.h: updated documentation.
2061 * include/cppunit/TestRegistry.h:
2062 * src/cppunit/TestRegistry.cpp: Removed. Replaced by TestFactoryRegistry.
2064 * include/cppunit/TextTestRunner.h:
2065 * src/cppunit/TextTestRunner.cpp: made printing progress using a
2066 TextTestProgressListener optional.
2068 * examples/cppunittest/ExceptionTest.h:
2069 * examples/cppunittest/HelperMacrosTest.h:
2070 * examples/cppunittest/HelperMacrosTest.cpp:
2071 * examples/cppunittest/NotEqualException.h:
2072 * examples/cppunittest/OrthodoxTest.h:
2073 * examples/cppunittest/RepeatedTest.h:
2074 * examples/cppunittest/TestAssertTest.h:
2075 * examples/cppunittest/TestCallerTest.h:
2076 * examples/cppunittest/TestDecoratorTest.h:
2077 * examples/cppunittest/TestFailureTest.h:
2078 * examples/cppunittest/TestResultCollectorTest.h:
2079 * examples/cppunittest/TestResultTest.h:
2080 * examples/cppunittest/TestSetUpTest.h:
2081 * examples/cppunittest/TestSuiteTest.h:
2082 * examples/cppunittest/XmlOutputterTest.h:
2083 * examples/cppunittest/XmlOutputterTest.cpp:
2084 * examples/cppunittest/XmlUniformizerTest.h:
2085 * examples/cppunittest/XmlUniformizerTest.cpp: changed base class for fixture
2086 from TestCase to TestFixture.
2088 * examples/hierarchy/BoardGameTest.h:
2089 * examples/hierarchy/ChessTest.h:
2090 * examples/hierarchy/main.cpp: updated to use HelperMacros for correct
2091 fixture instantiation (the ChessBoard::testReset test case was using
2092 BoardGame fixture instance instead of ChessBoard).
2094 2002-03-26 Baptiste Lepilleur <blep@users.sourceforge.net>
2096 * configure.in: bumped version to 1.7.9
2098 2002-03-26 Baptiste Lepilleur <blep@users.sourceforge.net>
2100 * src/msvc6/testpluginrunner/TestPlugInRunner.dsp: fixed release configuration.
2102 2002-03-25 Baptiste Lepilleur <blep@users.sourceforge.net>
2104 * include/cppunit/makefile.am: removed TestRegistry.h
2106 * include/cppunit/TestRegistry.h: removed. Obsolete, replaced by
2107 TestFactoryRegistry.
2109 * src/cppunit/makefile.am: removed TestRegistry.cpp. Added cppunit_dll.dsp.
2111 * include/cppunit/CompilerOutputter.h:
2112 * include/cppunit/NotEqualException.h:
2113 * include/cppunit/SynchronizedObject.h:
2114 * include/cppunit/TestFixture.h:
2115 * include/cppunit/TestListener.h:
2116 * include/cppunit/TestResult.h:
2117 * include/cppunit/TestSucessListener.h:
2118 * include/cppunit/TextOutputter.h:
2119 * include/cppunit/TextTestProgressListener.h:
2120 * include/cppunit/TextTestResult.h:
2121 * include/cppunit/XmlOutputter.h:
2122 * include/cppunit/extensions/TestFactory.h:
2123 * include/cppunit/extensions/TestFactoryRegistry.h:
2124 * include/cppunit/extensions/TestSuiteBuilder.h:
2125 * include/cppunit/extensions/TestSuiteFactory.h: minor doc update.
2127 * include/cppunit/TestFixture.h: added DLL export.
2129 * include/cppunit/msvc6/TestPlugInInterface.h: updated doc. Added automatic
2130 exportation of TestPlugIn publishing function.
2132 * src/cppunit/TestCase.cpp:
2133 * include/cppunit/TestCase.h: inherits setUp() and tearDown() from
2136 2002-03-25 Baptiste Lepilleur <blep@users.sourceforge.net>
2138 * configure.in: bumped version to 1.7.7
2140 2002-03-25 Baptiste Lepilleur <blep@users.sourceforge.net>
2142 * include/cppunit/config-msvc6.h:
2143 * include/cppunit/Portability.h
2144 * include/cppunit/extensions/TestFactoryRegistry.h
2145 * include/cppunit/TestResult.h
2146 * include/cppunit/TestResultCollector.h
2147 * include/cppunit/TestSuite.h
2148 * include/cppunit/TextTestRunner.h
2149 * include/cppunit/XmlOutputter.h: removed warning when compiling CppUnit
2152 * src/cppunit/DllMain.cpp: added some defines to speed up compilation a bit.
2154 2002-03-25 Baptiste Lepilleur <blep@users.sourceforge.net>
2156 * INSTALL-WIN32.txt: updated for MFC Unicode TestRunner.
2158 * src/msvc6/testrunner/TestRunner.dsp: added Unicode configurations.
2160 * src/msvc6/testrunner/ListCtrlSetter.cpp:
2161 * src/msvc6/testrunner/ListCtrlSetter.h: replaced usage of std::string by
2162 CString for easier ansi/unicode switch.
2164 * src/msvc6/testrunner/MsDevCallerListCtrl.cpp:
2165 * src/msvc6/testrunner/TestRunnerDlg.cpp:
2166 * src/msvc6/testrunner/TestRunnerModel.cpp:
2167 * src/msvc6/testrunner/TestRunnerModel.h:
2168 * src/msvc6/testrunner/TreeHierarchyDlg.cpp: made changes to compile with
2169 either ANSI and UNICODE support.
2171 * examples/msvc6/HostApp/HostApp.cpp:
2172 * examples/msvc6/HostApp/HostApp.h:
2173 * examples/msvc6/HostApp/HostAppDoc.cpp:
2174 * examples/msvc6/HostApp/HostAppDoc.h: moved TestRunner execution to
2175 HostApp::RunUnitTests() and removed the MainFrame application window.
2177 * examples/msvc6/HostApp/HostApp.dsp: added Unicode configurations.
2179 2002-03-24 Baptiste Lepilleur <blep@users.sourceforge.net>
2181 * INSTALL-WIN32.txt: added some info to build cppunit as a DLL.
2183 * include/cppunit/config-msvc6.h: added definition of macro CPPUNIT_API
2184 when building or linking DLL. Defined CPPUNIT_BUILD_DLL when building, and
2185 CPPUNIT_DLL when linking.
2187 * include/cppunit/Portability.h: added empty definition of macro
2188 CPPUNIT_API when not building or using CppUnit as a DLL. When any of
2189 those symbol is defined, the symbol CPPUNIT_NEED_DLL_DECL is set to 1.
2191 * include/cppunit/extensions/RepeatedTest.h:
2192 * include/cppunit/extensions/TestDecorator.h:
2193 * include/cppunit/extensions/TestSetUp.h:
2194 * include/cppunit/TestCaller.h
2195 * include/cppunit/extensions/TestFactory.h
2196 * include/cppunit/extensions/TestFactoryRegistry.h
2197 * include/cppunit/extensions/TypeInfoHelper.h
2198 * include/cppunit/Asserter.h
2199 * include/cppunit/Exception.h
2200 * include/cppunit/NotEqualException.h
2201 * include/cppunit/SourceLine.h
2202 * include/cppunit/SynchronizedObject.h
2203 * include/cppunit/Test.h
2204 * include/cppunit/TestAssert.h
2205 * include/cppunit/TestCase.h
2206 * include/cppunit/TestFailure.h
2207 * include/cppunit/TestListener.h
2208 * include/cppunit/TestResult.h
2209 * include/cppunit/TestSuite.h
2210 * include/cppunit/CompilerOutputter.h
2211 * include/cppunit/Outputter.h
2212 * include/cppunit/TestResultCollector.h
2213 * include/cppunit/TestSuccessListener.h
2214 * include/cppunit/TextOutputter.h
2215 * include/cppunit/TextTestProgressListener.h
2216 * include/cppunit/TextTestResult.h
2217 * include/cppunit/TextTestRunner.h
2218 * include/cppunit/XmlOutputter.h: added CPPUNIT_API for DLL export.
2220 * include/cppunit/TestSuite.h:
2221 * src/cppunit/TestSuite.cpp: reindented
2223 * include/cppunit/extensions/TestSetUp.h:
2224 * src/cppunit/TestSetUp.cpp: added .cpp. extracted inline method and moved
2227 * src/cppunit/DllMain.cpp: added, contains Dll entry point.
2229 2002-03-06 Baptiste Lepilleur <blep@users.sourceforge.net>
2231 * src/cppunit/TextTestProgressListener.cpp: flush the stream after each
2234 2002-03-03 Baptiste Lepilleur <blep@users.sourceforge.net>
2236 * configure.in: updated version number to 1.7.4
2238 2002-03-03 Baptiste Lepilleur <blep@users.sourceforge.net>
2240 * include/cppunit/makefile.am:
2241 * src/cppunit/makefile.am: added missing SynchronizedObject and
2244 * generated 1.7.3 tar ball.
2246 2002-02-29 Baptiste Lepilleur <blep@users.sourceforge.net>
2248 * inclued/cppunit/XmlOutputter.h:
2249 * inclued/cppunit/XmlOutputter.cpp: added optional parameter to constructor
2250 to specify the encoding.
2252 * configure.in: updated version number to 1.7.3
2254 2002-02-28 Baptiste Lepilleur <blep@users.sourceforge.net>
2256 * NEW: updated and restructured.
2258 * include/cppunit/CompilerOutputter.h:
2259 * src/cppunit/CompilerOutputter.cpp:
2260 updated against TestResultChange. Changed TestResult to TestResultCollector.
2262 * include/cppunit/extensions/HelperMacros.h: minor documentation fix.
2264 * include/cppunit/Outputter.h: added. Abstract base class for all Outputter.
2266 * include/cppunit/Portability.h: made the fix on OStringStream suggested by
2267 Bob Summerwill to remove level 4 warning with VC++.
2269 * include/cppunit/TestAssert.h: added macro CPPUNIT_ASSERT_EQUAL_MESSAGE.
2271 * src/cppunit/TestFailure.cpp:
2272 * include/cppunit/TestFailure.h: added method clone() to duplicate a
2273 failure. Made all method virtual.
2275 * include/cppunit/TestListener.h: changed signature of addFailure() to
2276 addFailure( const TestFailure &failure ). Failure is now only a temporary
2279 * include/cppunit/Outputter.h: added. Abstract base class for all
2280 outputter. Used by TextTestRunner.
2282 * include/cppunit/SynchronizedObject.h:
2283 * src/cppunit/SynchronizedObject.cpp: added. Class extracted from
2284 TestResult. Base class for objects that can be accessed from different
2287 * include/cppunit/TestResult.h: TestFailure.h is no longer included.
2289 * include/cppunit/TestResult.h:
2290 * src/cppunit/TestResult.cpp: extracted all methods related to keeping track
2291 of the result to the new TestResultCollector class which is a TestListener.
2293 * include/cppunit/TestResultCollector.h:
2294 * src/cppunit/TestResultCollector.cpp: added. TestListener which kept track
2295 of the result of the test run. All failure/error, and tests are tracked.
2297 * include/cppunit/TestSucessListener.h:
2298 * src/cppunit/TestSucessListener.cpp: added. TestListener extracted from
2299 TestResult. Is responsible for wasSucessful().
2301 * include/cppunit/TestCase.h:
2302 * src/cppunit/TestCase.cpp: reindented.
2304 * include/cppunit/TextOutputter.h:
2305 * src/cppunit/TextOutputter.cpp: added. Copied from the deprecated
2306 TextTestResult and modified to act as an Ouputter.
2308 * include/cppunit/TextTestProgressListener.h:
2309 * src/cppunit/TextTestProgressListener.cpp: Copied from the deprecated
2310 TextTestResult and modified to print the dot while the test are running.
2312 * include/cppunit/TextTestResult.h:
2313 * src/cppunit/TextTestResult.cpp: updated against TestResult change.
2314 No compatiblity break. Deprecated.
2316 * include/cppunit/TextTestRunner.h:
2317 * src/cppunit/TextTestRunner.cpp: updated to work with the new TestResult.
2318 Use TextTestProgressListener and TextOutputter instead of TextTestResult.
2319 Any outputter with interface Outputter can be used to print the test result
2320 (CompilerOutputter, XmlOutputter, TextOutputter...)
2322 * include/cppunit/XmlOutputter.h:
2323 * src/cppunit/XmlOutputter.cpp: updated against TestResultChange.
2324 Changed TestResult to TestResultCollector.
2326 * src/msvc6/TestRunnerDlg.h:
2327 * src/msvc6/TestRunnerDlg.cpp: fixed the 'fullrowselect' feature of the
2328 list view. The dialog is a TestListener itself, it no longer use the
2329 GUITestResult class.
2331 * src/msvc6/TestRunner.rc: moved the "autorun test button" in such a way that
2332 it did not overlap the progress bar anymore.
2334 * src/msvc6/MfcSynchronizationObject.h: added. Generic SynchronizedObject
2337 * src/msvc6/GUITestResult.h :
2338 * src/msvc6/GUITestResult.cpp : removed.
2340 * src/qttestrunner/TestRunnerModel.h:
2341 * src/qttestrunner/TestRunnerModel.cpp: changed addFailure() signature to
2342 reflect change on TestListener.
2344 * examples/cppunittest/CppUnitTestMain.cpp: updated to use the new Outputter
2345 abstraction and TextTestRunner facilities.
2347 * examples/cppunittest/FailingTestCase.h:
2348 * examples/cppunittest/FailingTestCase.cpp: removed. Replaced by MockTestCase.
2350 * examples/cppunittest/FailingTestCase.h:
2351 * examples/cppunittest/FailingTestCase.h:
2353 * examples/cppunittest/HelperMacrosTest.h:
2354 * examples/cppunittest/HelperMacrosTest.cpp: Updated against TestResult change.
2355 Use MockTestListener instead of TestResult to check for sucess or failure.
2357 * examples/cppunittest/MockTestListener.h:
2358 * examples/cppunittest/MockTestListener.cpp: the class now behave like a mock
2361 * examples/cppunittest/MockTestCase.h:
2362 * examples/cppunittest/MockTestCase.cpp: added. Mock TestCase object.
2364 * examples/cppunittest/OrthodoxTest.h:
2365 * examples/cppunittest/OrthodoxTest.cpp: Updated against TestResult change.
2366 Use MockTestListener instead of TestResult to check for sucess or failure.
2368 * examples/cppunittest/SynchronizedTestResult.h: Updated against TestResult
2371 * examples/cppunittest/TestCallerTest.h:
2372 * examples/cppunittest/TestCallerTest.cpp: Updated against TestResult change.
2373 Use MockTestListener instead of TestResult.
2375 * examples/cppunittest/TestCaseTest.h:
2376 * examples/cppunittest/TestCaseTest.cpp: Updated against TestResult change.
2377 Use MockTestListener and MockTestCase instead of FailingTestCase and TestResult.
2379 * examples/cppunittest/TestDecoratorTest.h:
2380 * examples/cppunittest/TestDecoratorTest.cpp: Updated against TestResult change.
2381 Use MockTestCase instead of FailingTestCase.
2383 * examples/cppunittest/TestListenerTest.h:
2384 * examples/cppunittest/TestListenerTest.cpp: removed. Those unit tests have been
2385 rewrote and moved to TestResultTest.
2387 * examples/cppunittest/TestResultTest.h:
2388 * examples/cppunittest/TestResultTest.cpp: Updated to test the new interface.
2389 Tests from TestListenerTest have been moved here.
2391 * examples/cppunittest/TestResultCollectorTest.h:
2392 * examples/cppunittest/TestResultCollectorTest.cpp: added. Tests for the class
2393 that been extracted from TestResult.
2395 * examples/cppunittest/TestSetUpTest.h:
2396 * examples/cppunittest/TestSetUpTest.cpp: renamed SetUp inner class to MockSetUp.
2397 Changed interface to be more akin to a Mock object.
2399 * examples/cppunittest/TestSuiteTest.h:
2400 * examples/cppunittest/TestSuiteTest.cpp: Updated against TestResult change,
2401 and rewrote to use MockTestCase instead of FailingTestCase.
2403 * examples/cppunittest/XmlOutputterTest.h:
2404 * examples/cppunittest/XmlOutputterTest.cpp: Updated against TestResult change.
2405 Added some utility methods to make the update easier.
2407 2001-10-28 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2409 * INSTALL-unix: Add note about cygwin.
2411 2001-10-24 Baptiste Lepilleur <blep@users.sourceforge.net>
2413 * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp:
2414 * examples/msvc6/HostApp/HostApp.dsp: use custom file build instead
2415 of post-build/pre-link step to copy the TestRunner DLL to the
2416 Release/Debug directory.
2418 * src/msvc6/ProgressBar.cpp:
2419 * src/msvc6/ProgressBar.h:
2420 * src/msvc6/TestRunner.rc:
2421 * src/msvc6/TestRunnerDlg.cpp:
2422 * src/msvc6/TestRunnerDlg.h:
2423 * src/msvc6/testRunner.dsp:
2424 * src/msvc6/TestRunnerModel.cpp:
2425 * src/msvc6/TestRunnerModel.h: included Gigi Sayfan (gigi@morphink.com)
2426 patch. The dialog can now be resized, and list view columns and dialog
2429 * src/msvc6/ProgressBar.cpp:
2430 * src/msvc6/ProgressBar.h: Minor refactoring.
2432 * THANKS: added Gigi Sayfan to the list.
2434 2001-10-21 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2436 * configure.in: Bump version to 1.7.2.
2438 * Release 1.7.1 (alpha).
2440 * Merged changes from cvs BRANCH_1_6; details follow.
2442 * examples/cppunittest/TestSetUpTest.h (class SetUp): Add
2443 namespace qualifier to CppUnit::TestSetup() constructor call.
2445 * include/cppunit/Makefile.am (dist-hook): Restore hook to
2446 remove config-auto.h from distribution.
2448 * doc/Makefile.am: Move the definition of htmldir inside if DOC
2449 conditional. Add "else" branch to conditional with dummy targets
2450 for install-data-hook and uninstall-local. Move all-local outside
2451 the conditional, and move "dox" target into both branches of the
2454 2001-10-20 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2456 * examples/cppunittest/Makefile.am (cppunittestmain_SOURCES):
2457 Include XmlUnformiserTest files.
2459 * doc/Doxyfile.in (GENERATE_MAN): Do not generate man pages.
2460 * doc/Makefile.am: Do not make man directories.
2462 2001-10-19 Baptiste Lepilleur <blep@users.sourceforge.net>
2464 * include/cppunit/Exception.h:
2465 * src/cppunit/Exception.cpp: what(), added back the throw() qualifier.
2467 2001-10-14 Baptiste Lepilleur <blep@users.sourceforge.net>
2469 * include/cppunitui/* : added, Qt TestRunner.
2471 * examples/qt/* : added, example showing the use of Qt TestRunner.
2473 * src/qttestrunner : added, source of the Qt TestRunner DLL.
2475 2001-10-08 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2477 * src/cppunit/Exception.cpp (what): Remove "throw()" qualifier, to
2478 match earlier change to header.
2480 2001-10-07 Baptiste Lepilleur <blep@users.sourceforge.net>
2482 * include/cppunit/CompilerTestResultOutputter.h :
2483 renamed CompilerOutputter.h
2485 * src/cppunit/CompilerTestResultOutputter.cpp :
2486 renamed CompilerOutputter.cpp
2488 * include/cppunit/CompilerTestResultOutputter.h :
2489 * src/cppunit/CompilerTestResultOutputter.cpp : ajust max line length
2490 for wrapping. Added static factory method defaultOutputter(). Print
2491 the number of test runs on success.
2493 * include/cppunit/CompilerTestResultOutputter.h : renamed
2494 CompilerOutputter.h.
2496 * src/cppunit/CompilerTestResultOutputter.cpp : renamed
2497 CompilerOutputter.cpp.
2499 * examples/cppunittest/CppUnitTestMain.cpp : use factory method
2500 CompilerTestResultOutputter::defaultOutputter().
2502 * src/msvc6/DSPlugIn/DSPlugIn.dsp : removed COM registration in
2503 post-build step. IT is automatically done by VC++ when the add-in is
2504 added. Caused build to failed if the add-in was used in VC++.
2508 * src/cppunit/TestAssert.cpp : modified deprecated assert
2509 implementations to use Asserter.
2511 * examples/cppunittest/XmlTestResultOutputterTest.h :
2512 renamed XmlOutputterTest.h.
2514 * examples/cppunittest/XmlTestResultOutputterTest.cpp :
2515 renamed XmlOutputterTest.cpp.
2518 * examples/cppunittest/CppUnitTestMain.cpp :
2519 * examples/cppunittest/CppUnitTestMain.dsp :
2520 * examples/cppunittest/Makefile.am :
2521 * examples/cppunittest/XmlTestResultOutputterTest.h :
2522 * examples/cppunittest/XmlTestResultOutputterTest.cpp :
2523 * examples/msvc6/CppUniTestApp/CppUnitTestApp.dsp
2524 * include/cppunit/CompilerOutputter.h :
2525 * include/cppunit/Makefile.am :
2526 * include/cppunit/XmlTestResultOutputter.h :
2527 * src/cppunit/CompilerOutputter.cpp :
2528 * src/cppunit/cppunit.dsp :
2529 * src/cppunit/Makefile.am :
2530 * src/cppunit/XmlTestResultOutputter.cpp : change due to renaming
2531 CompilerTestResultOutputter to CompilerOutputter,
2532 XmlTestResultOutputter to XmlOuputter, XmlTestResultOutputterTest
2533 to XmlOutputterTest.
2535 2001-10-06 Baptiste Lepilleur <blep@users.sourceforge.net>
2537 * include/cppunit/CompilerTestResultOutputter.h :
2538 * src/cppunit/CompilerTestResultOutputter.cpp : added. Output result
2539 in a compiler compatible format.
2541 * src/cppunit/CppUnit.dsp :
2542 * include/cppunit/MakeFile.am :
2543 * src/cppunit/MakeFile.am : added CompilerTestResultOutputter.cpp
2544 and CompilerTestResultOutputter.h.
2546 * examples/cppunittest/CppUnitTestMain.cpp : if -selftest is specified
2547 on the command line, no standard test result are printed, but compiler
2548 compatible result at printed.
2550 * examples/cppunittest/CppUnitTestMain.dsp : added post-build step to
2551 run the test suite with -selftest.
2555 * src/cppunit/TextTestRunner.cpp : skip a line after printing
2558 2001-10-06 Baptiste Lepilleur <blep@users.sourceforge.net>
2560 * examples/cppunittest/CppUnitTestMain.cpp : application returns
2561 0 is test suite run sucessfuly, 1 otherwise.
2563 * src/cppunit/Exception.cpp : bug fix, operator =() with VC++.
2564 Removed call to std::exception::operator =() which is bugged
2567 * doc/FAQ : added a note explaining why the test
2568 ExceptionTest.testAssignment used to fail.
2570 * NEWS : updated and detailed.
2572 * include/cppunit/TestResult.h :
2573 * src/cppunit/TestResult.cpp : added reset().
2575 * include/cppunit/TextTestRunner.h :
2576 * src/cppunit/TextTestRunner.cpp : Constructor take an optional
2577 TextTestRestult. The TextTestResult remain alive as long as
2578 the runner. Added result() to retreive the result. Printing the
2579 result is now optinal (enabled by default).
2581 2001-10-05 Baptiste Lepilleur <blep@users.sourceforge.net>
2583 * include/cppunit/Asserter.h :
2584 * src/cppunit/Asserter.cpp : added. Helper to create assertion macros.
2586 * src/cppunit/cppunit.dsp :
2587 * src/cppunit/Makefile.am :
2588 * include/cppunit/Makefile.am : added Asserter.h and Asserter.cpp.
2590 * include/cppunit/Exception.h :
2591 * src/cppunit/Exception.cpp : added constructor that take a
2592 SourceLine argument. Deprecated static constant and old constructor.
2593 Fixed some constness issues.
2595 * examples/cppunittest/ExceptionTest.cpp : Refactored.
2597 * NEWS : partially updated (need to be more detailed)
2599 * include/cppunit/NotEqualException.h :
2600 * src/cppunit/NotEqualException.cpp : added constructor that take a
2601 SourceLine argument. Deprecated old constructor. Added a third element
2604 * examples/cppunittest/NotEqualExceptionTest.cpp : moved to "Core"
2605 suite. Added test for SourceLine() and additionalMessage().
2608 * include/cppunit/SourceLine.h :
2609 * src/cppunit/SourceLine.cpp : added. Result of applying
2610 IntroduceParameterObject refactoring on filename & line number...
2612 * include/cppunit/TestAssert.h :
2613 * src/cppunit/TestAssert.cpp : deprecated old assert functions.
2614 added functions assertEquals() and assertDoubleEquals() which use
2617 * src/cppunit/TestCase.cpp : Modified for SourceLine.
2619 * include/cppunit/TestFailure.h :
2620 * src/cppunit/TestFailure.cpp : added failedTestName(), and
2623 * src/msvc6/testrunner/TestRunnerDlg.cpp : modified to use SourceLine.
2625 * include/cppunit/TextTestResult.h :
2626 * src/cppunit/TextTestResult.cpp : corrected include order and
2627 switched to angled brackets. Refactored. Don't print failure location
2628 if not available. Not equal failure dump additional message if
2631 * src/cppunit/TextTestRunner.cpp : run() now returns a boolean to
2632 indicate if the run was sucessful.
2634 * src/cppunit/XmlTestResultOutputter.cpp : replaced itoa() with
2635 OStringStream. Refactored.
2637 * examples/cppunittest/XmlUniformiser.h :
2638 * examples/cppunittest/XmlUniformiser.cpp :
2639 CPPUNITTEST_ASSERT_XML_EQUAL capture failure location. Refactored
2642 * examples/cppunittest/XmlUniformiserTest.h :
2643 * examples/cppunittest/XmlUniformiserTest.cpp : added test for
2644 CPPUNITTEST_ASSERT_XML_EQUAL.
2646 * include/cppunit/XmlTestResultOutputter.h :
2647 * src/cppunit/XmlTestResultOutputter.cpp : updated to use SourceLine.
2649 2001-10-05 Baptiste Lepilleur <blep@users.sourceforge.net>
2653 * include/cppunit/Exception.h : added include Portability.h.
2655 * include/cppunit/TestResult.* : changed TestFailures to a deque.
2658 * examples/cppunittest/CppUnitTest.dsp :
2659 * examples/cppunittest/MakeFile.am :
2660 * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp : Added
2661 XmlTestResultOutputterTest.*, XmlUniformiser.*, XmlUniformiserTest.*,
2662 UnitTestToolSuite.h, OutputSuite.h.
2664 * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp : revised project
2665 folders structure. Added missing NoteEqualExceptionTest.*.
2667 * examples/cppunittest/CppUnitTestSuite.cpp : added 'Output' and
2668 'UnitTestTool' suites.
2670 * src/cppunit/cppunit.dsp: removed estring.h. Revised project folders
2671 structure. Removed TestRegistry.*. Added TestSetUp.h,
2672 XmlTestResultOutputter.*.
2674 * src/cppunit/MakeFile.am: added XmlTestResultOutputter.*.
2676 * src/testrunner/TestRunnerDlg.cpp: removed disabled code.
2678 2001-10-03 Baptiste Lepilleur <blep@users.sourceforge.net>
2680 * include/cppunit/TestFailure.cpp :
2681 * include/cppunit/TestFailure.h : fixed some constness issues. Added
2682 argument to indicate the type of failure to constructor. Added
2685 * include/cppunit/TestListener.h : removed addError(). addFailure()
2686 now take a TestFailure as argument.
2688 * include/cppunit/TestResult.h :
2689 * include/cppunit/TestResult.cpp : removed errors(). Refactored. Fixed
2690 some constness issues. Added typedef TestFailures for vector returned
2691 by failures(). failures() returns a const reference on the list of
2692 failure. added testFailuresTotal(). Constructor can take an optional
2693 synchronization object.
2695 * include/cppunit/TextTestResult.h :
2696 * include/cppunit/TextTestResult.cpp : removed printErrors().
2697 Refactored. Updated to suit new TestResult, errors and failures are
2698 reported in the same list.
2700 * examples/cppunittest/TestFailureTest.cpp :
2701 * examples/cppunittest/TestFailureTest.h : modified to use the new
2702 TestFailure constructor. Added one test.
2704 * examples/cppunittest/TestListenerTest.cpp: removed addError().
2705 Refactored to suit new TestListener.
2707 * examples/cppunittest/TestResultTest.h :
2708 * examples/cppunittest/TestResultTest.cpp : modified to suit the
2711 2001-10-02 Baptiste Lepilleur <blep@users.sourceforge.net>
2713 * include/cppunit/extensions/TestFactoryRegistry.h
2714 * src/cppunit/TestFactoryRegistry.cpp : fixed memory leaks that
2715 occured when a TestFactoryRegistry was registered into another
2716 TestFactoryRegistry.
2718 * include/cppunit/extensions/AutoRegisterSuite.h : updated doc.
2720 * include/cppunit/extensions/HelperMacros.h : added macro
2721 CPPUNIT_TEST_SUITE_NAMED_REGISTRATION to register a suite into
2722 a named suite. Updated doc.
2724 * examples/cppunittest/CoreSuite.h:
2725 * examples/cppunittest/ExtensionSuite.h:
2726 * examples/cppunittest/HelperSuite.h: added, declaration of suite for
2727 use with CPPUNIT_TEST_SUITE_NAMED_REGISTRATION.
2729 * examples/cppunittest/makefile.am : added HelperSuite.h, CoreSuite.h,
2730 ExtensionSuite.h, CppUnitTestSuite.h and CppUnitTestSuite.cpp.
2732 * examples/cppunittest/CppUnitTestSuite.*: added.
2734 * examples/cppunittest/ExceptionTest.cpp:
2735 * examples/cppunittest/TestAssertTest.cpp:
2736 * examples/cppunittest/TestCaseTest.cpp:
2737 * examples/cppunittest/TestFailureTest.cpp:
2738 * examples/cppunittest/TestListenerTest.cpp:
2739 * examples/cppunittest/TestResultTest.cpp:
2740 * examples/cppunittest/TestSuiteTest.cpp: moved into named suite
2741 "Core" using CPPUNIT_TEST_SUITE_NAMED_REGISTRATION.
2743 * examples/cppunittest/OrthodoxTest.cpp:
2744 * examples/cppunittest/RepeatedTest.cpp:
2745 * examples/cppunittest/TestDecoratorTest.cpp:
2746 * examples/cppunittest/TestSetUpTest.cpp: moved into named suite
2747 "Extension" using CPPUNIT_TEST_SUITE_NAMED_REGISTRATION.
2749 * examples/cppunittest/HelperMacrosTest.cpp:
2750 * examples/cppunittest/TestCallerTest.cpp: moved into named suite
2751 "Helper" using CPPUNIT_TEST_SUITE_NAMED_REGISTRATION.
2753 * examples/cppunittest/CppUnitTest.dsp :
2754 * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp : added
2755 Makefile.am, HelperSuite.h, CoreSuite.h, ExtensionSuite.h,
2756 CppUnitTestSuite.h and CppUnitTestSuite.cpp.
2758 2001-10-01 Baptiste Lepilleur <blep@users.sourceforge.net>
2762 * doc/other_documentation.dox : added all the authors to the list of
2765 * examples/cppunittest/HelperMacrosTest.*: added unit tests for
2766 CPPUNIT_TEST_FAIL & CPPUNIT_TEST_EXCEPTION.
2768 * examples/cppunittest/TestAssertTest.*: added unit tests for
2769 CPPUNIT_FAIL. Corrected spelling error. Relaxed constraint on message
2770 produced by CPPUNIT_ASSERT_MESSAGE. Refactored some tests.
2772 * include/cppunit/extensions/HelperMacros.h : added macro
2773 CPPUNIT_TEST_EXCEPTION to create a test case for the specified method
2774 that must throw an exception of the specified type.
2776 * include/cppunit/extensions/TestSuiteBuilder.h : made
2777 makeTestName() public. Added addTestCallerForException() to add a
2778 test case expecting an exception of the specified type to be
2781 * include/cppunit/TestAssert.h : added macro CPPUNIT_FAIL as a
2782 shortcut for CPPUNIT_ASSERT_MESSAGE( message, false ).
2784 2001-09-30 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2786 * configure.in: Set version to 1.7.0.
2788 2001-09-30 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2792 * doc/footer.html: Do not meddle with font size.
2794 * doc/header.html: Add link to FAQ. Do not meddle with font size.
2796 * doc/Doxyfile.in (PROJECT_NAME): Set to "CppUnit", to be
2797 consistent on capitalization.
2798 (PROJECT_NUMBER): Include "Version" in the string.
2800 * doc/Makefile.am (EXTRA_DIST): Distribute FAQ.
2802 * Makefile.am (EXTRA_DIST): Distribute contrib/msvc/CppUnit.WWTpl
2803 and contrib/msvc/readme.txt.
2804 (dist-hook): Change line endings of these files.
2806 * include/cppunit/extensions/RepeatedTest.h
2807 * src/cppunit/RepeatedTest.cpp (countTestCases, toString):
2808 Add const qualifier to function.
2810 2001-09-30 Baptiste Lepilleur <blep@users.sourceforge.net>
2812 * contrib/msvc/CppUnit.WWTpl: added, template for WorkSpace Whiz!
2813 to create new classes and unit tests.
2816 * INSTALL-WIN32.txt: moved FAQ from install-WIN32 to that file. Added
2817 a generic question to hint at the helper macros.
2819 * include/cppunit/extensions/HelperMacros.h: bug #464844, moved
2820 declaration of ThisTestCaseFactory from CPPUNIT_TEST_SUITE_END to
2821 CPPUNIT_TEST_SUITE where the Fixture class name is available from
2822 the macro parameter.
2824 2001-09-30 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2826 * include/cppunit/config-mac.h: New. Macintosh configuration,
2827 courtesy of Duane Murphy.
2829 * include/cppunit/Portability.h: Move <string> include inside
2830 #if-block that needs it.
2832 * doc/Makefile.am (doc-dist): Creates tar file of HTML doc files.
2833 Remove all wildcarded filenames. Do not bother with manpages.
2835 * Makefile.am (EXTRA_DIST): Distribute INSTALL-unix and
2837 (man_MANS): Install cppunit-config.1.
2838 (doc-dist): Use "make doc-dist" in doc directory.
2840 * cppunit-config.1: Document --prefix and --exec-prefix.
2842 * cppunit-config.in (Usage): Remove "[LIBRARIES]" from help string.
2844 2001-09-29 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2846 * configure.in: Set version to 1.6.1.
2848 2001-09-29 Baptiste Lepilleur <blep@users.sourceforge.net>
2850 * example/cppunittest/TestCaller.*: remove some memory leaks.
2851 TestCaller exception catching features is now tested correctly.
2852 Previous test tested nothing!
2854 2001-09-23 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2856 * configure.in: Set version to 1.6.0.
2858 * Makefile.am (EXTRA_DIST): Add BUGS.
2860 * NEWS: Incorporate Baptiste's notes.
2862 * BUGS: New file for list of known bugs.
2864 * README: Note about file BUGS.
2866 2001-09-24 Baptiste Lepilleur <blep@users.sourceforge.net>
2868 * include/cppunit/TestAssert.h : changed header order to remove
2871 * include/cppunit/TestCaller.h : bugfix: threw 'new Exception'
2872 instead of 'Exception'.
2874 2001-09-23 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2876 * doc/footer.html: Put devel list in mailto tag.
2878 * doc/Makefile.am (man_MANS): Restore ability to install manpages.
2879 (htmldir): HTML pages installed under $(pkgdatadir).
2881 * doc/other_documentation.dox: Reference cookbook.html
2882 in same directory. Remove obsolete text.
2884 * configure.in: Do not set CFLAGS; remove --enable-debug-mode.
2886 * include/cppunit/Portability.h:
2887 * include/cppunit/extensions/HelperMacros.h: Allow user
2888 to request the old-style CU_TEST family of macros.
2890 * doc/Doxyfile.in (EXCLUDE_PATTERNS): Remove estring.h.
2892 * README: Add contact and bug-reporting info.
2894 * INSTALL-unix: New. Move the unix install notes here
2897 * AUTHORS: Put myself on the list.
2899 2001-09-21 Baptiste Lepilleur <blep@users.sourceforge.net>
2901 * include/cppunit/TestFailure.h : made destructor virtual.
2903 * INSTALL-WIN32.txt : added some more infos about DSPlugIn.
2905 * src/msvc6/DSPlugIn/DSPlugIn.rgs: added some registry data
2906 that where missing to register the COM object.
2908 * src/msvc6/DSPlugIn/DSPlugIn.rc: updated some dll version info.
2910 * src/msvc6/DSPlugIn/DSPlugIn.dsp: fixed the custom build step to
2911 register the DLL using regsvr32.exe. Added a post-build step to
2912 copy the dll to the lib/ directory. This prevent a blocking
2913 compilation error if the DLL is in use by VC++.
2915 2001-09-20 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2917 * Makefile.am (snapshot): Replace "date -I" GNUism with portable
2918 specification for ISO date format.
2919 (dist-hook): Correct rule to change line endings for INSTALL-WIN32.txt.
2921 * include/cppunit/Portability.h:
2922 * config/ac_cxx_have_strstream.m4 (AC_CXX_HAVE_STRSTREAM): Extend
2923 to check for and use <strstream> in preference to <strstream.h>.
2924 Patrick Hartling reports the former is required for the SGI
2925 MIPSpro 7.3.1.2 compiler.
2927 2001-09-19 Baptiste Lepilleur <blep@users.sourceforge.net>
2929 * examples/cppunittest/makefile.am : added TestSetupTest.(cpp/h)
2931 * examples/examples.dsw: removed some unnecessary dependencies.
2933 * examples/msvc6/HostApp/HostApp.dsp: fixed release configuration
2935 * src/msvc6/DSPlugIn/DSPlugIn.dsp: fixed release configuration, and
2936 disabled the custom build command that does not work.
2938 * include/cppunit/extensions/HelperMacros.h: reordered header to remove
2939 some warning with VC++.
2941 * INSTALL-WIN32.txt : detailed what was in each project. Added a FAQ
2942 about the failing test case in cppunittest.
2944 2001-09-19 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2946 * README: Describe how to check if libtool is fixed.
2948 * Makefile.am (dist-hook): Include INSTALL-WIN32.txt in the list
2949 of files to convert to MSDOS line endings.
2950 (snapshot): Use ISO-8601 compliant date for filename.
2951 (ACLOCAL_AMFLAGS): Specify local directory.
2953 2001-09-18 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
2955 * include/cppunit/TextTestResult.h: Change include from <iosfwd>
2956 to <iostream>. Sugggested by Peer Sommerlund.
2958 * include/cppunit/Portability.h: Qualify ostrstream with std.
2959 Suggested by Patrick Hartling.
2961 2001-09-18 Baptiste Lepilleur <blep@users.sourceforge.net>
2963 * examples/examples.dsw:
2964 * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsw:
2965 * examples/msvc6/HostApp/HostApp.dsw:
2966 * examples/msvc6/TestPlugIn/TestPlugIn.dsw: Added missing
2969 * src/msvc6/DSPlugIn/DSPlugIn.dsp: fixed *.tlb output directory.
2971 * include/msvc6/testrunner/TestPlugInInterface.h: does not define
2972 NOMINMAX if already defined.
2974 2001-09-17 Baptiste Lepilleur <blep@users.sourceforge.net>
2976 * Makefile.am: Added INSTALL-WIN32.txt to EXTRA_DIST.
2978 * INSTALL-WIN32.txt: added, short documentation for CppUnit and VC++.
2980 * include/cppunit/extensions/HelperMacros.h: bug #448363, removed
2981 an extraneous ';' at the end of CPPUNIT_TEST_SUITE_END macro.
2983 * examples/cppunittest/TestCallerTest.cpp: bug #448332, fixed
2986 * src/msvc6/testrunner/TestRunnerDlg.h:
2987 * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.h:
2988 * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.cpp: change to define
2989 IDD to a dummy value when subclassing the dialog.
2991 * src/cppunit/cppunit.dsp:
2992 * src/msvc6/testrunner/TestRunner.dsp:
2993 * src/msvc6/testpluginrunner/TestPlugInRunner.dsp:
2994 * examples/cppunitttest/CppUnitTestMain.dsp:
2995 * examples/hierarchy.dsp:
2996 * examples/msvc6/TestPlugIn/TestPlugIn.dsp:
2997 * examples/msvc6/HostApp/HostApp.dsp: all configurations can be compiled.
2999 * src/msvc6/testpluginrunner/TestPlugInRunner.dsw: added dependency to
3000 cppunit.dsp and TestRunner.dsp.
3002 2001-09-16 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3004 * Revert TestFixture-related changes from 2001-07-15:
3006 * src/cppunit/cppunit.dsp (SOURCE): Remove TestFixture.h.
3008 * src/cppunit/TestCase.cpp (setUp, tearDown): Restore function
3011 * include/cppunit/TestCase.h (class TestCase): Do not derive
3012 from class TestFixture. Restore member functions setUp()
3015 * include/cppunit/TestCaller.h: Do not include
3016 <cppunit/TestFixture.h>.
3018 * include/cppunit/Makefile.am (libcppunitinclude_HEADERS): Remove
3021 2001-09-14 Baptiste Lepilleur <blep@users.sourceforge.net>
3022 * src/msvc6/testrunner/TestRunner.dsp: fixed release configuration.
3024 * src/msvc6/testrunner/TestRunner.dsw: added DSPlugIn.dsp. TestRunner
3025 depends on DSPlugIn.
3027 * src/msvc6/testrunner/TestRunner.cpp:
3028 * src/msvc6/testrunner/TestRunnerDlg.h:
3029 * src/msvc6/testrunner/TestRunnerDlg.cpp:
3030 * src/msvc6/testrunner/MsDevCallerListCtrl.cpp:
3031 * src/msvc6/testrunner/MsDevCallerListCtrl.h:
3032 * src/msvc6/DSPlugIn/*: integrated patch from
3033 Patrick Berny (PPBerny@web.de). An add-ins for VC++. Double-cliking
3034 a failed test in the TestRunner, VC++ will open the source file and
3035 go to the failure location.
3037 * src/cppunit/Exception.cpp:
3038 * include/cppunit/Exception.h: compile fix, call to overrided
3039 operator = of parent class failed. Using typedef to the parent
3042 * src/cppunit/cppunit.dsp: added TestFixture.h
3044 * src/cppunit/TestFactoryRegistry.cpp: removed <utility> which isn't
3047 * include/cppunit/TestCase.h:
3048 * include/cppunit/TestSuite.h:
3049 * include/cppunit/extensions/TestFactoryRegistry.h: added
3050 include <Portability.h> before any other includes to remove warning
3053 * include/cppunit/Portability.h: moved platform specific includes at
3054 the beginning of the header. fixed CPPUNIT_HAVE_CPP_SOURCE_ANNOTATION
3057 * include/cppunit/config-msvc6.h: removed pragma once (useless, should
3058 be put in each header to have an effect).
3060 2001-08-07 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3062 * doc/Makefile.am: Add workaround for broken Doxygen.
3064 * src/cppunit/TextTestResult.cpp (operator<<): Remove CppUnit::
3067 * configure.in: Add check for <cmath>.
3068 * src/cppunit/TestAssert.cpp: Use <math.h> if <cmath> not
3070 * src/cppunit/TestCase.cpp: Do not include <cmath>.
3072 * include/cppunit/config-bcb5.h (HAVE_CMATH):
3073 * include/cppunit/config-msvc6.h (HAVE_CMATH): Add.
3075 * src/cppunit/Exception.cpp: Qualify std::exception.
3077 * examples/cppunittest/OrthodoxTest.h (TestCase): Add assignment
3078 operator. MIPSpro fails to compile without one.
3080 * Makefile.am: Removed automake conditional "DOC".
3081 * doc/Makefile.am: Placed "DOC" conditional around
3082 rules that invoke Doxygen.
3084 * config/Makefile.am: Removed.
3085 * configure.in: Do not create config/Makefile.
3086 * Makefile.am (EXTRA_DIST): Distribute config/*.m4.
3087 (SUBDIRS): Do not descend into config.
3089 2001-07-15 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3091 * include/cppunit/TestFixture.h: New. Declare class TextFixture.
3093 * include/cppunit/TestCaller.h:
3094 * include/cppunit/TestCase.h:
3095 * src/cppunit/TestCase.cpp:
3096 * include/cppunit/Makefile.am: Subclass TestCase from TestFixture.
3098 2001-07-14 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3100 * include/cppunit/Exception.h:
3101 * include/cppunit/Test.h:
3102 * include/cppunit/TestCaller.h:
3103 * include/cppunit/TestCase.h:
3104 * include/cppunit/TestFailure.h:
3105 * include/cppunit/TestListener.h:
3106 * include/cppunit/TestSuite.h:
3107 * include/cppunit/extensions/RepeatedTest.h:
3108 * include/cppunit/extensions/TestDecorator.h:
3109 * src/cppunit/TestCase.cpp: Add documentation.
3111 2001-07-13 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3113 * examples/cppunittest/TestAssertTest.h:
3114 * examples/cppunittest/TestAssertTest.cpp: Add tests
3115 for CPPUNIT_ASSERT_EQUAL.
3117 2001-07-12 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3119 * configure.in: Set to version 1.5.6. On the assumption that
3120 backwards compatibility has been broken (though I'm not certain),
3121 set the binary age and interface age to zero.
3123 * examples/cppunittest/TestFailureTest.h:
3124 * include/cppunit/Exception.h:
3125 * include/cppunit/NotEqualException.h:
3126 * src/cppunit/Exception.cpp:
3127 * src/cppunit/NotEqualException.cpp: Add "throw()" to overridden
3128 std::exception destructors; required for GCC 3.0.
3130 2001-07-07 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3132 * include/cppunit/Makefile.am: Clean config-auto.h using
3135 * doc/Makefile.am: Temporarily disable manpage installation.
3136 Fix html installation to ensure files removed by uninstall.
3138 * src/cppunit/estring.h: Removed.
3140 * src/cppunit/Makefile.am:
3141 * src/cppunit/TestCase.cpp:
3142 * src/cppunit/TextTestResult.cpp: Recode to avoid use of estring.
3144 * examples/cppunittest/OrthodoxTest.h: Add const qualifier
3145 to operator== methods.
3147 * include/cppunit/config-bcb5.h:
3148 * include/cppunit/config-msvc6.h: Define CPPUNIT_HAVE_SSTREAM to 1.
3150 * config/ac_cxx_have_sstream.m4: New. Defines macro
3151 AC_CXX_HAVE_SSTREAM. Taken from the autoconf archive.
3153 * config/ac_cxx_have_strstream.m4: New. Copy of above,
3154 modified to check for presence of strstream; defines
3155 macro AC_CXX_HAVE_STRSTREAM.
3157 * configure.in: Invoke AC_CXX_HAVE_SSTREAM and
3158 AC_CXX_HAVE_STRSTREAM.
3160 * include/cppunit/Portability.h: Define class
3161 CppUnit::OStringStream.
3163 * include/cppunit/TestAssert.h:
3164 * src/cppunit/TestFactoryRegistry.cpp: Replace std::ostringstream
3165 by CppUnit::OStringStream.
3168 2001-07-06 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3170 * configure.in: Add --disable-typeinfo-name option.
3172 * README: Add note about new configure option.
3174 * configure.in: Remove AM_DISABLE_STATIC.
3176 * INSTALL: Update to version from autoconf 2.50.
3178 2001-07-05 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3180 * include/cppunit/Portability.h: Remove definition of
3181 CPPUNIT_USE_TYPEINFO.
3183 * configure.in: Define USE_TYPEINFO_NAME in config.h.
3185 * include/cppunit/config-msvc6.h (CPPUNIT_USE_TYPEINFO_NAME):
3186 * include/cppunit/config-bcb5.h (CPPUNIT_USE_TYPEINFO_NAME): Add
3189 * include/cppunit/TestCaller.h:
3190 * include/cppunit/extensions/TypeInfoHelper.h:
3191 * include/cppunit/extensions/TestSuiteBuilder.h:
3192 * include/cppunit/extensions/HelperMacros.h:
3193 * src/cppunit/TypeInfoHelper.cpp:
3194 * src/cppunit/TestFactoryRegistry.cpp:
3195 * src/cppunit/TestCase.cpp (toString):
3196 Switch from CPPUNIT_USE_TYPEINFO to CPPUNIT_USE_TYPEINFO_NAME.
3198 * src/cppunit/TestAssert.cpp: Remove include of estring.h.
3200 * configure.in: Invoke AC_PROG_CC to workaround a automake
3201 bug. Move probes for CC/CXX ahead of the libtool macros.
3203 * examples/hierarchy/Makefile.am:
3204 * examples/cppunittest/Makefile.am:
3205 * src/cppunit/Makefile.am (INCLUDES): Search
3206 $(top_builddir)/include for <cppunit/config-auto.h>.
3208 2001-06-27 Baptiste Lepilleur <blep@users.sourceforge.net>
3210 * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp:
3211 moved dll copy from post-build to custom build setting, so that the
3212 dll is copied even if the CppUnitTestApp was not modified.
3214 * examples/msvc6/TestPlugIn/: a new example of test plug in.
3216 * src/msvc6/TestRunner/ListCtrlFormatter.*
3217 * src/msvc6/TestRunner/ListCtrlSetter.*:
3218 added, helper to manipulate list control.
3220 * src/msvc6/TestRunner/TestRunnerDlg.*: change to make the error list
3221 more compact. text moved to string resources. icons added for typ
3224 * src/msvc6/TestRunner/MostRecentTests.*: added, classes that will
3225 replace the current implementation of MRU test which make it hard
3226 to subclass the dialog.
3228 * src/msvc6/TestRunner/res/errortype.bmp: added, bitmap with error
3229 types (failure and error).
3231 * src/msvc6/TestPlugInRunner/: A test runner to run test plug in.
3232 Test plug in are DLL that publish a specified plug in interface.
3233 Those DLL are loaded and reloaded by the TestPlugInRunner to run
3234 tests. This remove the need to wrap DLL with a executable to test
3237 * src/cppunit/cppunit.dsp:
3238 removed config.h from project
3239 added Portability.h and config-msvc6.h
3241 * include/cppunit/config-msvc6.h:
3242 undef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST
3245 2001-06-20 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3247 * autogen.sh: Stop when tool fails. Try /usr/local/share/aclocal
3248 only if aclocal fails without it.
3252 2001-06-18 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3254 * include/cppunit/Portability.h (CPPUNIT_USE_TYPEINFO):
3255 (CPPUNIT_ENABLE_NAKED_ASSERT):
3256 (CPPUNIT_HAVE_CPP_SOURCEANNOTATION): Fix setting of
3259 2001-06-17 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3261 * configure.in: Require autoconf 2.50 or better.
3263 2001-06-17 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3265 * configure.in: moved config.h from include/ to config/
3267 * configure.in: added AC_CREATE_PREFIX_CONFIG_H call
3269 * config/ac_create_prefix_config_h.m4: added
3271 * configure.in: removed include/cppunit/config.h from AC_OUTPUT
3272 * include/cppunit/config.h.in: obsoleted by
3273 AC_CREATE_PREFIX_CONFIG_H macro.
3276 * config/bb_enable_doxygen.m4: moved doxygen stuff into
3277 BB_ENABLE_DOXYGEN macro
3279 * include/cppunit/Makefile.am: removed config.h, added config-auto.h,
3280 config-msvc6.h, config-bcb5.h, Portability.h
3282 * include/cppunit/Makefile.am: added dist-hook to exclude
3283 config-auto.h from dist tar
3285 * include/cppunit/TestAssert.h:
3286 * include/cppunit/extensions/TypeInfoHelper.h:
3287 * include/cppunit/extensions/TestSuiteBuilder.h:
3288 * include/cppunit/extensions/HelperMacros.h:
3289 * src/cppunit/TypeInfoHelper.cpp:
3290 * src/cppunit/TestRegistry.cpp:
3291 * src/cppunit/TestFactoryRegistry.cpp:
3292 * src/cppunit/TestCase.cpp: replaced #include of <config.h> with
3293 <cppunit/Portability.h>
3295 * src/cppunit/TypeInfoHelper.cpp: use new macro name
3296 CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST
3299 2001-06-12 Baptiste Lepilleur <blep@users.sourceforge.net>
3301 * include/cppunit/NotEqualException.h
3302 * src/cppunit/NotEqualException.h:
3303 Fixed constructor and operator = (aren't unit test nice?). Added
3304 methods expectedValue() and actualValue().
3306 * include/cppunit/TestAssert.h:
3307 * src/cppunit/TestAssert.cpp:
3308 Use NotEqualException to report equality failure.
3310 * src/cppunit/TestFactoryRegistry.cpp: fixed makeTest(). It did not use m_name for
3313 * src/cppunit/TestResult.cpp:
3314 Report expect/was on different line for assertEquals failure.
3316 * examples/cppunittest/NotEqualExceptionTest.*: added unit tests for
3319 * examples/cppunittest/OrthodoxTest.*: operator ! use explicit construction.
3321 * examples/msvc6/CppUnitTestApp/CppUnitTestApp.cpp: modified so that the dialog
3322 is not displayed after the tests are run.
3324 2001-06-11 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3326 * examples/cppunittest/TestResultTest.cpp (testAddTwoErrors,
3327 testAddTwoFailures): Replace vector::at() with more portable
3328 vector::operator[]; GCC doesn't have the former.
3330 * include/cppunit/extensions/TestDecorator.h (countTestCases):
3331 Declare return type.
3333 * src/cppunit/Makefile.am (libcppunit_la_SOURCES): Add
3334 TestAssert.cpp, RepeatedTest.cpp.
3336 * include/cppunit/TestCaller.h (NoExceptionExpected): Fix
3339 2001-06-11 Baptiste Lepilleur <blep@users.sourceforge.net>
3341 * include/cppunit/Exception.h: now inherit from std::exception
3342 instead of ::exception. Added clone(), type(), and isInstanceOf()
3343 methods for subclassing support. Changed UNKNOWNLINENUMBER type to
3344 long for consistence with lineNumber().
3346 * include/cppunit/NotEqualException.h: addded, exception to be
3347 used with assertEquals().
3349 * include/cppunit/TestAssert.h: changed TestAssert into a
3350 namespace instead of a class. This remove the need of template
3351 member methods and does not cause compiler internal error on
3352 VC++. Macro CPPUNIT_ASSERT_MESSAGE has been added to fail test
3353 with a specified message.
3355 * include/cppunit/TestCaller.h: added "Expected exception"
3356 support. Based on Tim Jansen patch (#403745), but use a traits
3357 instead of RTTI to distingh between "No expected exception" and
3358 "Excepted exception". Exception type name is reported using RTTI
3359 if CPPUNIT_USE_TYPEINFO is defined.
3361 * include/cppunit/extensions/HelperMacros.h: static method suite()
3362 implemented by CPPUNIT_TEST_SUITE_END macro now returns a
3363 TestSuite instead of a Test.
3365 * include/cppunit/extensions/RepeatedTest.h: corrected
3366 countTestCases, operator = declaration.
3368 * include/cppunit/extensions/TestDecorator.h: removed const from
3369 run() method. Did not match run() declaration of Test class.
3371 * include/cppunit/extensions/TestFactory.h: fixed a comment.
3373 * include/cppunit/extensions/TestSetup.h: corrected run() method
3374 declaration. Methods setUp() and tearDown() were not declared
3377 * include/cppunit/extensions/TestSuiteBuilder.h: added a method
3378 addTestCaller() which take a pointer on a fixture.
3380 * include/cppunit/NotEqualException.cpp: addded, exception to be
3381 used with assertEquals().
3383 * src/cppunit/RepeatedTest.cpp: added to reduce header dependency
3384 (TestResult.h was missing).
3386 * src/cppunit/TestAssert.cpp: added to put non template functions
3389 * src/cppunit/TestCase.cpp: added std:: prefix to catch
3390 (exception& e). Integrated a modified version of Tim Jansen patch
3391 (#403745) for TestCase to make the unit test (TestCaseTest)
3392 pass. If the setUp() fail then neither the runTest() nor the
3393 tearDown() method is called.
3395 * examples/examples.dsw: added cppunittest projects to workspace.
3397 * examples/cppunittest/TestResultTest.*: renamed
3400 * examples/cppunittest/*: added unit tests for: HelperMacros,
3401 TestAssert, TestCaller, TestCase, TestFailure, TestResult,
3402 TestSuite, TestDecoratorTest, TestSetUp, RepeatedTestTest,
3403 Orthodox, Exception.
3405 2001-06-05 Baptiste Lepilleur <blep@users.sourceforge.net>
3407 * src/cppunit/TypeInfoHelper.cpp: removed #include <config.h>,
3408 cppunit/config.h was already included.
3410 * src/cppunit/cppunit.dsp: removed TestAssert.cpp from project.
3412 * added/updated .cvsignore files for beter handling of windows
3415 * added include/cppunit/config.h with a default configuration for
3418 * include/cppunit/.cvsignore: removed config.h from the list of
3421 * renamed VC++ configurations without RTTI from "Debug No
3422 CU_USE_TYPEINFO" to "Debug Crossplatform".
3424 * include/cppunit/TestAssert.h: added include <math.h> for fabs().
3426 2001-06-02 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3428 * src/cppunit/Exception.cpp: Remove unnecessary namespace
3429 declaration; it confuses Doxygen.
3431 2001-06-02 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3433 * configure.in: Add AC_CXX_STRING_COMPARE_STRING_FIRST.
3435 * autogen.sh: Add "-I config" to aclocal flags, to pick up
3438 * config/ac_cxx_namespaces.m4: New. Taken from
3439 http://cryp.to/autoconf-archive.
3441 * config/ac_cxx_string_compare_string_first.m4: New. Detect
3442 if std::string::compare() takes string argument first.
3444 2001-06-02 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3446 * include/cppunit/TestAssert.h: Declare generic assertion_traits
3447 class. Replace notEqualsMessage functions for long and double by
3448 a generic, template function. Replace assertEquals for longs by a
3449 generic template function. Inline all class methods. Define new
3450 assertion macros CPPUNIT_ASSERT, CPPUNIT_ASSERT_EQUAL, and
3451 CPPUNIT_ASSERT_DOUBLES_EQUAL; the old names are available by
3452 editing <cppunit/config.h>.
3454 * src/cppunit/TestAssert.cpp: Removed. Move code to inline
3457 * config/ac_cxx_rtti.m4: New. Taken from
3458 http://cryp.to/autoconf-archive.
3460 * include/cppunit/config.h.in: New. Input file for installable,
3461 generated config.h file.
3463 * configure.in: Use AC_CXX_RTTI; generate include/cppunit/config.h.
3465 * include/cppunit/extensions/HelperMacros.h:
3466 * include/cppunit/extensions/TestSuiteBuilder.h:
3467 * include/cppunit/extensions/TypeInfoHelper.h:
3468 * src/cppunit/TestCase.cpp:
3469 * src/cppunit/TestFactoryRegistry.cpp:
3470 * src/cppunit/TypeInfoHelper.cpp:
3471 Use "#if CPPUNIT_USE_TYPEINFO" rather than "#ifdef".
3473 * src/cppunit/TypeInfoHelper.cpp: Allow for std::string::compare()
3474 that takes the string in the first argument.
3476 * doc/cookbook.html:
3477 * examples/cppunittest/TestCallerTest.cpp:
3478 * examples/cppunittest/TestResultTest.cpp:
3479 * examples/hierarchy/BoardGameTest.h:
3480 * examples/hierarchy/ChessTest.h:
3481 * examples/msvc6/HostApp/ExampleTestCase.cpp:
3482 * include/cppunit/TestCase.h:
3483 * include/cppunit/extensions/Orthodox.h:
3484 Replace assert by CPPUNIT_ASSERT.
3485 Replace assertLongsEqual by CPPUNIT_ASSERT_EQUAL.
3486 Replace assertDoublesEqual by CPPUNIT_ASSERT_DOUBLES_EQUAL.
3488 * * (CU_TEST_SUITE, CU_TEST, CU_TEST_SUITE_END,
3489 CU_TEST_SUITE_REGISTRATION): Replace prefix CU_ with CPPUNIT_.
3491 * examples/cppunittest/.cvsignore: Add UNIX generated files.
3493 2001-06-01 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3495 * examples/cppunittest/Makefile.am: added
3497 * configure.in: added examples/cppunittest/Makefile to AC_OUTPUT.
3499 * examples/cppunittest/TestCallerTest (suite),
3500 examples/cppunittest/TestResultTest (suite): fixed 'ISO C++
3501 forbids taking the address of a bound member function to form
3502 a pointer to member function' bug reported by g++.
3504 * examples/cppunittest/TestCallerTest (suite),
3505 examples/cppunittest/TestResultTest (suite): removed dependency on
3508 2001-06-01 Baptiste Lepilleur <blep@users.sourceforge.net>
3510 * added project cppunittest to examples/: unit tests to test cppunit.
3511 The main file is CppUnitTestMain.cpp. Unit tests have been implemented
3512 for TestCaller and TestListener.
3514 * added project CppUnitTestApp to examples/msvc6: graphical runner
3517 * added TestListener to TestResult. It is a port of junit
3520 * updated some .cvsignore to ignore files generated with VC++.
3522 2001-05-30 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3524 * src/cppunit/TestCase.cpp (toString): put type_info in std
3525 namespace and inside CU_USE_TYPEINFO ifdef.
3527 2001-05-29 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3529 * examples/hierarchy/main.cpp: Remove extraneous includes.
3531 * src/cppunit/TextTestResult.cpp (addError, addFailure): Do not
3534 * include/cppunit/extensions/HelperMacros.h: Rework documentation.
3535 (CU_TEST_SUITE): Move definition of member function suite() ...
3536 (CU_TEST_SUITE_END): ... to here.
3537 (CU_TEST): Use '&' to take address of member function
3540 * include/cppunit/extensions/AutoRegisterSuite.h: Declare "factory"
3543 2001-05-28 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3545 * doc/other_documentation.dox: Don't include "CppUnit" in
3546 anchor text, since Doxygen puts its own anchor around it.
3548 * doc/Makefile.am (html/index.html): Depend on
3549 other_documentation.dox.
3551 * doc/Doxyfile.in (EXCLUDE): Move config.h and estring.h to
3552 EXCLUDE_PATTERNS; they were not being excluded.
3554 * ChangeLog: Reformat all entries to start with <TAB>. See
3555 <http://www.red-bean.com/cvs2cl/changelogs.html> for change log
3558 * doc/cookbook.html: Update all code examples, except for TestRunner
3561 2001-05-23 Baptiste Lepilleur <blep@users.sourceforge.net>
3563 * Updated CU_TEST_SUITE macro documentation. It is now stated
3564 explicitly that you do not need to specify template parameter as
3565 macro argument. The documentation example has been updated to
3568 2001-05-23 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3570 * autogen.sh: added '--add-missing' option to automake.
3571 * autogen.sh: added '--force' option to libtoolize and removed
3573 * config: removed generated files from CVS.
3575 2001-05-20 Baptiste Lepilleur <blep@users.sourceforge.net>
3577 * Fixed bug #424320 (VC++ TestRunner): access violation caused by
3578 NULL pointer in history list. NULL pointer are not added to the
3581 2001-05-19 Baptiste Lepilleur <blep@users.sourceforge.net>
3583 * Added some items to the TODO list for VC++ TestRunner.
3585 * "Debug" configuration is now the default configuration in VC++
3588 * Modified sort order in the test browser of VC++ TestRunner so
3589 that tests are in the same order as in the suite. Suites are still
3590 sorted alphabetically.
3592 * Merged Steve M. Robbins patch to replace assertImplementation
3593 with assert in hierarchy example.
3595 * Added a TextTestRunner to runner tests. It is based on Michael
3596 Feather's version, but have been rewriten.
3598 * Removed traces that printed the test name in TextTestResult
3601 * Added the test name to error and failure report in
3604 * Updated hierarchy example to use TextTestRunner.
3606 2001-05-18 Baptiste Lepilleur <blep@users.sourceforge.net>
3608 * Symbol CU_USE_TYPEINFO must be defined instead of USE_TYPEINFO
3611 * Added back default constructor to TestSuiteBuilder which use
3612 RTTI. It is available only if CU_USE_TYPEINFO is defined.
3614 * Moved TypeInfoHelper.h from src/cppunit to
3615 include/cppunit/extensions.
3617 * Macro CU_TEST_SUITE in HelperMacros.h now use TestSuiteBuilder
3618 default constructor if CU_USE_TYPEINFO is defined, otherwise it
3619 use the type name given to the CU_TEST_SUITE macro.
3621 * TestFactoryRegistry::registerFactory(factory) now generate a
3622 dummy name based on a serial number instead of using RTTI. The
3623 macro CU_TEST_SUITE_REGISTRATION and class AutoRegisterSuite can
3624 now when CU_USE_TYPEINFO is not defined.
3626 * Added a new Configuration named "Debug Without CU_USE_TYPEINFO"
3627 to msvc6 projects. The flag CU_USE_TYPEINFO is not defined in that
3630 2001-05-17 Steve M. Robbins <steve@nyongwa.montreal.qc.ca>
3632 * Makefile.am (dist-hook): Copy files relative to $(top_srcdir).
3634 * doc/Makefile.am: Generated doc files depend on Doxyfile.
3636 * doc/Doxyfile.in: Use autoconf substitutions in file names.
3638 * examples/hierarchy/Makefile.am (check_PROGRAMS): Build hierarchy
3639 with "make check", not "make all".
3641 * examples/hierarchy/Makefile.am (INCLUDES):
3643 * src/cppunit/Makefile.am (INCLUDES): Search in
3644 $(top_srcdir)/include.
3646 * Added .cvsignore files.
3648 2001-05-16 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3650 * Merged Debian packaging support files by Christian Leutloff from
3651 debian package version 1.5.4-2. Added make target 'debian' for
3652 debian package creation.
3654 2001-05-09 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3658 * Finished CppUnitW 1.2 merge. Removed RTTI depency from
3659 TestSuite. Added TestCaller constructor for calling methods in
3662 2001-04-29 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3664 * Merged Baptiste Lepilleurs CppUnitW 1.2. Some differences:
3665 TypeInfo stuff (in TestSuite) compiled in only if USE_TYPEINFO is
3666 set. TestSuite.getTests now returns a const ref instead of taking
3667 a ref as parameter. Removed auto_ptr stuff from
3668 TestFactoryRegistry: auto_ptr cannot be used in containers.
3670 2001-04-28 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3672 * Merged MSVC++ specific TestRunner and example adapted from
3673 Micheal Feathers version by Baptiste Lepilleur.
3675 * Moved cppunit subdir into src.
3677 2001-04-24 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3679 * Merged Baptiste Lepilleurs patch for TestRegistry: now TestCases
3680 do not automatically register with the Registry anymore.
3682 * Added extension headers from Micheal Feathers port to
3683 include/cppunit/extensions.
3685 2001-04-19 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3687 * Added MSVC++ workspace and project files, submitted by Baptiste
3690 2001-04-15 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3692 * Moved public headers from cppunit into new subdir
3693 include/cppunit. This should make more clear which headers are
3694 used internally only (like estring.h).
3696 * Moved autoconf auxiliary stuff into new subdir config, to make
3697 the top dir less crowded.
3699 * Prefixed std:: to cerr, cout and endl.
3701 2001-04-14 Bastiaan Bakker <bastiaan.bakker@lifeline.nl>
3705 * Added support for RPM generation.
3707 * Added autoconf support for Doxygen document generation: Doxygen
3708 and GraphViz dot are automatically detected and LaTeX and HTML can
3709 be switch on or off.
3711 * cppunit/TextTestResult.cpp: changed cout to stream. Fixes bug
3714 * cppunit/TextTestReulst.cpp: add '#include <iostream>'. Fixes
3717 * cppunit/*.cpp: removed bogus 'inline' specifiers. Fixes bug
3718 #224542 and #223291.
3720 * doc/header.html: corrected link to CppUnit project page Fixes
3723 * cppunit/*.cpp, examples/hierarchy/main.cpp: removed all 'using
3724 namespace ...' occurences.
3726 2001-01-31 Tim Jansen <timj@systembureau.com>
3728 * cppunit/TestCase.cpp, cppunit/TestCase.h, cppunit/TestSuite.h,
3729 cppunit/TestSuite.cpp: applied patch #402271 by bwithrow. Fixes
3732 * cppunit/TestSuite.cpp (deleteContents): clear vector after
3733 contents have been deleted (so there are no invalid pointers in
3734 the vector) Patch #403540 / #403542
3736 * cppunit/TestCaller.h: create Fixture with empty constructor so
3737 that only the TestCaller but not the Fixture instance is
3738 registered in the TestRegistry Patch #403541 / #403542
3740 * examples/hierarchy/BoardGameTest.h,
3741 examples/hierarchy/ChessTest.h, examples/hierarchy/main.cpp:
3742 initialize example TestCases with TestSuite so that the
3743 TestCallers are registered in the TestRegistry Patch
3744 #403542. Fixes bug #415249
3746 * cppunit/TestCaller.h, cppunit/TestCase.cpp, cppunit/TestCase.h:
3747 changed documentation; made hopefully clearer which constructor
3748 registers the instance in the TestRegistry; corrected syntax in
3749 code example Patch #403542.