2002-04-11 Baptiste Lepilleur * doc/FAQ: removed question about the Exception::operator =() problem. * release 1.8.0 2002-04-11 Steve M. Robbins * include/cppunit/ui/mfc/Makefile.am: * include/cppunit/ui/qt/Makefile.am: * include/cppunit/ui/text/Makefile.am: Set the libcppunitincludedir variable. Correct case of header file ui/qt/Config.h. * configure.in: Output the new include/*/Makefiles. 2002-04-10 Baptiste Lepilleur * Makefile.am: removed directory cppunitui from copy when making the dist. * include/cppunit/ui: added Makefile.am for dist and install. 2002-04-10 Baptiste Lepilleur * include/cppunitui/: moved to include/cppunit/ui (fix unix install problem). * doc/cookbook.dox: * examples/cppunittest/CppUnitTestMain.cpp: * examples/msvc/CppUnitTestApp/HostApp.cpp: * examples/msvc/HostApp/HostApp.cpp: * examples/qt/Main.Cpp: * examples/src/cppunit/TestRunner.cpp: * examples/src/msvc6/TestRunner/TestRunner.cpp: * examples/src/qttestrunner/TestRunner.cpp: updated to use instead of in include directives. * doc/CppUnit-win.dox: generated documentation give the include path at the bottom of the page for each class. * NEWS: added compatibility break for 1.7.10 users. 2002-04-05 Baptiste Lepilleur * examples/cppunittest/CppUnitTestMain.cpp: never wait for a key press. 2002-04-04 Baptiste Lepilleur * NEW: added CPPUNIT_ASSERT_EQUAL_MESSAGE compatiblity break. * include/cppunit/TestAssert.h: changed arguments order for CPPUNIT_ASSERT_EQUAL_MESSAGE. 'message' is now the first argument instead of the last (like CPPUNIT_ASSERT_MESSAGE). * examples/cppunittest/MockTestCase.cpp: * examples/cppunittest/MockTestListener.cpp: updated to reflect change on CPPUNIT_ASSERT_EQUAL_MESSAGE. 2002-03-28 Baptiste Lepilleur * configure.in: bumped version to 1.7.11 2002-03-28 Baptiste Lepilleur * doc/cookbook.html: removed. Replaced by cookbook.doc. * doc/cookbook.dox: added, conversion of cookbook.html to Doxygen format. * doc/other_documentation.dox: added groups definition. * doc/Makefile.am: replaced cookbook.html by cookbook.dox * doc/Doxyfile.in: added predefined CPPUNIT_HAVE_CPP_SOURCE_ANNOTATION. Replaced cookbook.html by cookbook.dox. * include/cppunitui/mfc/TestRunner.h: added, extracted from include/msvc6/testrunner/TestRunner.h. Moved class TestRunner to namespace CppUnit::MfcUi. * include/msvc6/testrunner/TestRunner.h: deprecated. A simple typedef to CppUnit::MfcUi::TestRunner. * include/textui/TestRuner.h: added, extracted from include/cppunit/TextTestRunner.h. * src/cppunit/TextTestRunner.cpp: renamed TestRunner.cpp. Moved into namespace CppUnit::TextUi. * src/msvc6/testruner/TestRunner.cpp: moved into namespace CppUnit::MfcUi. * src/cppunit/CompilerOutputter.cpp: removed printing "- " before NotEqualException addional message, for consistency between different TestRunner (Mfc,Text...) * include/cppunit/Asserter.h: * include/cppunit/CompilerOutputter.h: * include/cppunit/Exception.h: * include/cppunit/NotEqualException.h: * include/cppunit/Outputter.h: * include/cppunit/SourceLine.h: * include/cppunit/TestAssert.h: * include/cppunit/TestCaller.h: * include/cppunit/TestFailure.h: * include/cppunit/TestFixture.h: * include/cppunit/TestListener.h: * include/cppunit/TestResult.h: * include/cppunit/TestResultCollector.h: * include/cppunit/TestSucessListener.h: * include/cppunit/TestSuite.h: * include/cppunit/TextTestProgressListener.h: * include/cppunit/TextTestRunner.h: * include/cppunit/XmlOutputter.h: * include/cppunit/extensions/AutoRegisterSuite.h: * include/cppunit/extensions/HelperMacros.h: * include/cppunit/extensions/TestFactoryRegistry.h: * include/cppunit/extensions/TestSuiteBuilder.h: * include/cppunit/extensions/TestSuiteFactory.h: doc update. organization in groups. * examples/msvc6/CppUnitTestApp/CppUnitTestApp.cpp: * examples/msvc6/HostApp/HostApp.cpp: updated to use CppUnit::MfcUi::TestRunner. * examples/cppunittest/CppUnitTestMain.cpp: updated to use CppUnit::TextUi::TestRunner. 2002-03-27 Baptiste Lepilleur * include/msvc/testrunner/TestRunner.h: updated doc. reindented. * include/cppunit/Asserter.h: * include/cppunit/Asserter.cpp: * include/cppunit/TestResultCollector.h: * include/cppunit/TestResult.h: * include/cppunit/SynchronizedObject.h: * include/cppunit/extensions/TestCaller.h: doc update. * include/cppunitui/qt/TestRunner.h: doc update. 2002-03-27 Baptiste Lepilleur * makefile.am: added src/CppUnitLibraries.dsw, new contribution, and src/qttestrunner. * TODO: updated (doc). * contrib/msvc/AddingUnitTestMethod.dsm: added, submitted by bloodchen@hotmail.com. * constrib/msvc/readme.txt: updated. * include/cppunit/TestAsserter.h: * include/cppunit/SourceLine.h: updated doc. * include/cppunit/TestCaller.h: reindented. updated doc. * include/cppunit/extensions/HelperMacros.h: relaxed constraint on fixture. Fixture base class may be TestFixture instead of TestCase. * include/cppunit/TestCase.h: * src/cppunit/TestCase.h: TestCase inherits TestFixture for setUp() and tearDown() definition. Moved documentation to TestFixture. * include/cppunit/TestFixture.h: updated documentation. * include/cppunit/TestRegistry.h: * src/cppunit/TestRegistry.cpp: Removed. Replaced by TestFactoryRegistry. * include/cppunit/TextTestRunner.h: * src/cppunit/TextTestRunner.cpp: made printing progress using a TextTestProgressListener optional. * examples\cppunittest\ExceptionTest.h: * examples\cppunittest\HelperMacrosTest.h: * examples\cppunittest\HelperMacrosTest.cpp: * examples\cppunittest\NotEqualException.h: * examples\cppunittest\OrthodoxTest.h: * examples\cppunittest\RepeatedTest.h: * examples\cppunittest\TestAssertTest.h: * examples\cppunittest\TestCallerTest.h: * examples\cppunittest\TestDecoratorTest.h: * examples\cppunittest\TestFailureTest.h: * examples\cppunittest\TestResultCollectorTest.h: * examples\cppunittest\TestResultTest.h: * examples\cppunittest\TestSetUpTest.h: * examples\cppunittest\TestSuiteTest.h: * examples\cppunittest\XmlOutputterTest.h: * examples\cppunittest\XmlOutputterTest.cpp: * examples\cppunittest\XmlUniformizerTest.h: * examples\cppunittest\XmlUniformizerTest.cpp: changed base class for fixture from TestCase to TestFixture. * examples\hierarchy\BoardGameTest.h: * examples\hierarchy\ChessTest.h: * examples\hierarchy\main.cpp: updated to use HelperMacros for correct fixture instantiation (the ChessBoard::testReset test case was using BoardGame fixture instance instead of ChessBoard). 2002-03-26 Baptiste Lepilleur * configure.in: bumped version to 1.7.9 2002-03-26 Baptiste Lepilleur * src/msvc6/testpluginrunner/TestPlugInRunner.dsp: fixed release configuration. 2002-03-25 Baptiste Lepilleur * include/cppunit/makefile.am: removed TestRegistry.h * include/cppunit/TestRegistry.h: removed. Obsolete, replaced by TestFactoryRegistry. * src/cppunit/makefile.am: removed TestRegistry.cpp. Added cppunit_dll.dsp. * include/cppunit/CompilerOutputter.h: * include/cppunit/NotEqualException.h: * include/cppunit/SynchronizedObject.h: * include/cppunit/TestFixture.h: * include/cppunit/TestListener.h: * include/cppunit/TestResult.h: * include/cppunit/TestSucessListener.h: * include/cppunit/TextOutputter.h: * include/cppunit/TextTestProgressListener.h: * include/cppunit/TextTestResult.h: * include/cppunit/XmlOutputter.h: * include/cppunit/extensions/TestFactory.h: * include/cppunit/extensions/TestFactoryRegistry.h: * include/cppunit/extensions/TestSuiteBuilder.h: * include/cppunit/extensions/TestSuiteFactory.h: minor doc update. * include/cppunit/TestFixture.h: added DLL export. * include/cppunit/msvc6/TestPlugInInterface.h: updated doc. Added automatic exportation of TestPlugIn publishing function. * src/cppunit/TestCase.cpp: * include/cppunit/TestCase.h: inherits setUp() and tearDown() from class TestFixture. 2002-03-25 Baptiste Lepilleur * configure.in: bumped version to 1.7.7 2002-03-25 Baptiste Lepilleur * include/cppunit/config-msvc6.h: * include/cppunit/Portability.h * include/cppunit/extensions/TestFactoryRegistry.h * include/cppunit/TestResult.h * include/cppunit/TestResultCollector.h * include/cppunit/TestSuite.h * include/cppunit/TextTestRunner.h * include/cppunit/XmlOutputter.h: removed warning when compiling CppUnit as DLL. * src/cppunit/DllMain.cpp: added some defines to speed up compilation a bit. 2002-03-25 Baptiste Lepilleur * INSTALL-WIN32.txt: updated for MFC Unicode TestRunner. * src/msvc6/testrunner/TestRunner.dsp: added Unicode configurations. * src/msvc6/testrunner/ListCtrlSetter.cpp: * src/msvc6/testrunner/ListCtrlSetter.h: replaced usage of std::string by CString for easier ansi/unicode switch. * src/msvc6/testrunner/MsDevCallerListCtrl.cpp: * src/msvc6/testrunner/TestRunnerDlg.cpp: * src/msvc6/testrunner/TestRunnerModel.cpp: * src/msvc6/testrunner/TestRunnerModel.h: * src/msvc6/testrunner/TreeHierarchyDlg.cpp: made changes to compile with either ANSI and UNICODE support. * examples/msvc6/HostApp/HostApp.cpp: * examples/msvc6/HostApp/HostApp.h: * examples/msvc6/HostApp/HostAppDoc.cpp: * examples/msvc6/HostApp/HostAppDoc.h: moved TestRunner execution to HostApp::RunUnitTests() and removed the MainFrame application window. * examples/msvc6/HostApp/HostApp.dsp: added Unicode configurations. 2002-03-24 Baptiste Lepilleur * INSTALL-WIN32.txt: added some info to build cppunit as a DLL. * include/cppunit/config-msvc6.h: added definition of macro CPPUNIT_API when building or linking DLL. Defined CPPUNIT_BUILD_DLL when building, and CPPUNIT_DLL when linking. * include/cppunit/Portability.h: added empty definition of macro CPPUNIT_API when not building or using CppUnit as a DLL. When any of those symbol is defined, the symbol CPPUNIT_NEED_DLL_DECL is set to 1. * include/cppunit/extensions/RepeatedTest.h: * include/cppunit/extensions/TestDecorator.h: * include/cppunit/extensions/TestSetUp.h: * include/cppunit/TestCaller.h * include/cppunit/extensions/TestFactory.h * include/cppunit/extensions/TestFactoryRegistry.h * include/cppunit/extensions/TypeInfoHelper.h * include/cppunit/Asserter.h * include/cppunit/Exception.h * include/cppunit/NotEqualException.h * include/cppunit/SourceLine.h * include/cppunit/SynchronizedObject.h * include/cppunit/Test.h * include/cppunit/TestAssert.h * include/cppunit/TestCase.h * include/cppunit/TestFailure.h * include/cppunit/TestListener.h * include/cppunit/TestResult.h * include/cppunit/TestSuite.h * include/cppunit/CompilerOutputter.h * include/cppunit/Outputter.h * include/cppunit/TestResultCollector.h * include/cppunit/TestSuccessListener.h * include/cppunit/TextOutputter.h * include/cppunit/TextTestProgressListener.h * include/cppunit/TextTestResult.h * include/cppunit/TextTestRunner.h * include/cppunit/XmlOutputter.h: added CPPUNIT_API for DLL export. * include/cppunit/TestSuite.h: * src/cppunit/TestSuite.cpp: reindented * include/cppunit/extensions/TestSetUp.h: * src/cppunit/TestSetUp.cpp: added .cpp. extracted inline method and moved them to cpp file. * src/cppunit/DllMain.cpp: added, contains Dll entry point. 2002-03-06 Baptiste Lepilleur * src/cppunit/TextTestProgressListener.cpp: flush the stream after each progess step. 2002-03-03 Baptiste Lepilleur * configure.in: updated version number to 1.7.4 2002-03-03 Baptiste Lepilleur * include/cppunit/makefile.am: * src/cppunit/makefile.am: added missing SynchronizedObject and TextOutputter.h. * generated 1.7.3 tar ball. 2002-02-29 Baptiste Lepilleur * inclued/cppunit/XmlOutputter.h: * inclued/cppunit/XmlOutputter.cpp: added optional parameter to constructor to specify the encoding. * configure.in: updated version number to 1.7.3 2002-02-28 Baptiste Lepilleur * NEW: updated and restructured. * include/cppunit/CompilerOutputter.h: * src/cppunit/CompilerOutputter.cpp: updated against TestResultChange. Changed TestResult to TestResultCollector. * include/cppunit/extensions/HelperMacros.h: minor documentation fix. * include/cppunit/Outputter.h: added. Abstract base class for all Outputter. * include/cppunit/Portability.h: made the fix on OStringStream suggested by Bob Summerwill to remove level 4 warning with VC++. * include/cppunit/TestAssert.h: added macro CPPUNIT_ASSERT_EQUAL_MESSAGE. * src/cppunit/TestFailure.cpp: * include/cppunit/TestFailure.h: added method clone() to duplicate a failure. Made all method virtual. * include/cppunit/TestListener.h: changed signature of addFailure() to addFailure( const TestFailure &failure ). Failure is now only a temporary object. * include/cppunit/Outputter.h: added. Abstract base class for all outputter. Used by TextTestRunner. * include/cppunit/SynchronizedObject.h: * src/cppunit/SynchronizedObject.cpp: added. Class extracted from TestResult. Base class for objects that can be accessed from different threads. * include/cppunit/TestResult.h: TestFailure.h is no longer included. * include/cppunit/TestResult.h: * src/cppunit/TestResult.cpp: extracted all methods related to keeping track of the result to the new TestResultCollector class which is a TestListener. * include/cppunit/TestResultCollector.h: * src/cppunit/TestResultCollector.cpp: added. TestListener which kept track of the result of the test run. All failure/error, and tests are tracked. * include/cppunit/TestSucessListener.h: * src/cppunit/TestSucessListener.cpp: added. TestListener extracted from TestResult. Is responsible for wasSucessful(). * include/cppunit/TestCase.h: * src/cppunit/TestCase.cpp: reindented. * include/cppunit/TextOutputter.h: * src/cppunit/TextOutputter.cpp: added. Copied from the deprecated TextTestResult and modified to act as an Ouputter. * include/cppunit/TextTestProgressListener.h: * src/cppunit/TextTestProgressListener.cpp: Copied from the deprecated TextTestResult and modified to print the dot while the test are running. * include/cppunit/TextTestResult.h: * src/cppunit/TextTestResult.cpp: updated against TestResult change. No compatiblity break. Deprecated. * include/cppunit/TextTestRunner.h: * src/cppunit/TextTestRunner.cpp: updated to work with the new TestResult. Use TextTestProgressListener and TextOutputter instead of TextTestResult. Any outputter with interface Outputter can be used to print the test result (CompilerOutputter, XmlOutputter, TextOutputter...) * include/cppunit/XmlOutputter.h: * src/cppunit/XmlOutputter.cpp: updated against TestResultChange. Changed TestResult to TestResultCollector. * src/msvc6/TestRunnerDlg.h: * src/msvc6/TestRunnerDlg.cpp: fixed the 'fullrowselect' feature of the list view. The dialog is a TestListener itself, it no longer use the GUITestResult class. * src/msvc6/TestRunner.rc: moved the "autorun test button" in such a way that it did not overlap the progress bar anymore. * src/msvc6/MfcSynchronizationObject.h: added. Generic SynchronizedObject lock for MFC. * src/msvc6/GUITestResult.h : * src/msvc6/GUITestResult.cpp : removed. * src/qttestrunner/TestRunnerModel.h: * src/qttestrunner/TestRunnerModel.cpp: changed addFailure() signature to reflect change on TestListener. * examples/cppunittest/CppUnitTestMain.cpp: updated to use the new Outputter abstraction and TextTestRunner facilities. * examples/cppunittest/FailingTestCase.h: * examples/cppunittest/FailingTestCase.cpp: removed. Replaced by MockTestCase. * examples/cppunittest/FailingTestCase.h: * examples/cppunittest/FailingTestCase.h: * examples/cppunittest/HelperMacrosTest.h: * examples/cppunittest/HelperMacrosTest.cpp: Updated against TestResult change. Use MockTestListener instead of TestResult to check for sucess or failure. * examples/cppunittest/MockTestListener.h: * examples/cppunittest/MockTestListener.cpp: the class now behave like a mock object. * examples/cppunittest/MockTestCase.h: * examples/cppunittest/MockTestCase.cpp: added. Mock TestCase object. * examples/cppunittest/OrthodoxTest.h: * examples/cppunittest/OrthodoxTest.cpp: Updated against TestResult change. Use MockTestListener instead of TestResult to check for sucess or failure. * examples/cppunittest/SynchronizedTestResult.h: Updated against TestResult change. * examples/cppunittest/TestCallerTest.h: * examples/cppunittest/TestCallerTest.cpp: Updated against TestResult change. Use MockTestListener instead of TestResult. * examples/cppunittest/TestCaseTest.h: * examples/cppunittest/TestCaseTest.cpp: Updated against TestResult change. Use MockTestListener and MockTestCase instead of FailingTestCase and TestResult. * examples/cppunittest/TestDecoratorTest.h: * examples/cppunittest/TestDecoratorTest.cpp: Updated against TestResult change. Use MockTestCase instead of FailingTestCase. * examples/cppunittest/TestListenerTest.h: * examples/cppunittest/TestListenerTest.cpp: removed. Those unit tests have been rewrote and moved to TestResultTest. * examples/cppunittest/TestResultTest.h: * examples/cppunittest/TestResultTest.cpp: Updated to test the new interface. Tests from TestListenerTest have been moved here. * examples/cppunittest/TestResultCollectorTest.h: * examples/cppunittest/TestResultCollectorTest.cpp: added. Tests for the class that been extracted from TestResult. * examples/cppunittest/TestSetUpTest.h: * examples/cppunittest/TestSetUpTest.cpp: renamed SetUp inner class to MockSetUp. Changed interface to be more akin to a Mock object. * examples/cppunittest/TestSuiteTest.h: * examples/cppunittest/TestSuiteTest.cpp: Updated against TestResult change, and rewrote to use MockTestCase instead of FailingTestCase. * examples/cppunittest/XmlOutputterTest.h: * examples/cppunittest/XmlOutputterTest.cpp: Updated against TestResult change. Added some utility methods to make the update easier. 2001-10-28 Steve M. Robbins * INSTALL-unix: Add note about cygwin. 2001-10-24 Baptiste Lepilleur * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp: * examples/msvc6/HostApp/HostApp.dsp: use custom file build instead of post-build/pre-link step to copy the TestRunner DLL to the Release/Debug directory. * src/msvc6/ProgressBar.cpp: * src/msvc6/ProgressBar.h: * src/msvc6/TestRunner.rc: * src/msvc6/TestRunnerDlg.cpp: * src/msvc6/TestRunnerDlg.h: * src/msvc6/testRunner.dsp: * src/msvc6/TestRunnerModel.cpp: * src/msvc6/TestRunnerModel.h: included Gigi Sayfan (gigi@morphink.com) patch. The dialog can now be resized, and list view columns and dialog sizes are saved. * src/msvc6/ProgressBar.cpp: * src/msvc6/ProgressBar.h: Minor refactoring. * THANKS: added Gigi Sayfan to the list. 2001-10-21 Steve M. Robbins * configure.in: Bump version to 1.7.2. * Release 1.7.1 (alpha). * Merged changes from cvs BRANCH_1_6; details follow. * examples/cppunittest/TestSetUpTest.h (class SetUp): Add namespace qualifier to CppUnit::TestSetup() constructor call. * include/cppunit/Makefile.am (dist-hook): Restore hook to remove config-auto.h from distribution. * doc/Makefile.am: Move the definition of htmldir inside if DOC conditional. Add "else" branch to conditional with dummy targets for install-data-hook and uninstall-local. Move all-local outside the conditional, and move "dox" target into both branches of the conditional. 2001-10-20 Steve M. Robbins * examples/cppunittest/Makefile.am (cppunittestmain_SOURCES): Include XmlUnformiserTest files. * doc/Doxyfile.in (GENERATE_MAN): Do not generate man pages. * doc/Makefile.am: Do not make man directories. 2001-10-19 Baptiste Lepilleur * include/cppunit/Exception.h: * src/cppunit/Exception.cpp: what(), added back the throw() qualifier. 2001-10-14 Baptiste Lepilleur * include/cppunitui/* : added, Qt TestRunner. * examples/qt/* : added, example showing the use of Qt TestRunner. * src/qttestrunner : added, source of the Qt TestRunner DLL. 2001-10-08 Steve M. Robbins * src/cppunit/Exception.cpp (what): Remove "throw()" qualifier, to match earlier change to header. 2001-10-07 Baptiste Lepilleur * include/cppunit/CompilerTestResultOutputter.h : renamed CompilerOutputter.h * src/cppunit/CompilerTestResultOutputter.cpp : renamed CompilerOutputter.cpp * include/cppunit/CompilerTestResultOutputter.h : * src/cppunit/CompilerTestResultOutputter.cpp : ajust max line length for wrapping. Added static factory method defaultOutputter(). Print the number of test runs on success. * include/cppunit/CompilerTestResultOutputter.h : renamed CompilerOutputter.h. * src/cppunit/CompilerTestResultOutputter.cpp : renamed CompilerOutputter.cpp. * examples/cppunittest/CppUnitTestMain.cpp : use factory method CompilerTestResultOutputter::defaultOutputter(). * src/msvc6/DSPlugIn/DSPlugIn.dsp : removed COM registration in post-build step. IT is automatically done by VC++ when the add-in is added. Caused build to failed if the add-in was used in VC++. * NEWS : updated. * src/cppunit/TestAssert.cpp : modified deprecated assert implementations to use Asserter. * examples/cppunittest/XmlTestResultOutputterTest.h : renamed XmlOutputterTest.h. * examples/cppunittest/XmlTestResultOutputterTest.cpp : renamed XmlOutputterTest.cpp. * NEWS : * examples/cppunittest/CppUnitTestMain.cpp : * examples/cppunittest/CppUnitTestMain.dsp : * examples/cppunittest/Makefile.am : * examples/cppunittest/XmlTestResultOutputterTest.h : * examples/cppunittest/XmlTestResultOutputterTest.cpp : * examples/msvc6/CppUniTestApp/CppUnitTestApp.dsp * include/cppunit/CompilerOutputter.h : * include/cppunit/Makefile.am : * include/cppunit/XmlTestResultOutputter.h : * src/cppunit/CompilerOutputter.cpp : * src/cppunit/cppunit.dsp : * src/cppunit/Makefile.am : * src/cppunit/XmlTestResultOutputter.cpp : change due to renaming CompilerTestResultOutputter to CompilerOutputter, XmlTestResultOutputter to XmlOuputter, XmlTestResultOutputterTest to XmlOutputterTest. 2001-10-06 Baptiste Lepilleur * include/cppunit/CompilerTestResultOutputter.h : * src/cppunit/CompilerTestResultOutputter.cpp : added. Output result in a compiler compatible format. * src/cppunit/CppUnit.dsp : * include/cppunit/MakeFile.am : * src/cppunit/MakeFile.am : added CompilerTestResultOutputter.cpp and CompilerTestResultOutputter.h. * examples/cppunittest/CppUnitTestMain.cpp : if -selftest is specified on the command line, no standard test result are printed, but compiler compatible result at printed. * examples/cppunittest/CppUnitTestMain.dsp : added post-build step to run the test suite with -selftest. * NEWS : updated. * src/cppunit/TextTestRunner.cpp : skip a line after printing progress. 2001-10-06 Baptiste Lepilleur * examples/cppunittest/CppUnitTestMain.cpp : application returns 0 is test suite run sucessfuly, 1 otherwise. * src/cppunit/Exception.cpp : bug fix, operator =() with VC++. Removed call to std::exception::operator =() which is bugged on VC++. * doc/FAQ : added a note explaining why the test ExceptionTest.testAssignment used to fail. * NEWS : updated and detailed. * include/cppunit/TestResult.h : * src/cppunit/TestResult.cpp : added reset(). * include/cppunit/TextTestRunner.h : * src/cppunit/TextTestRunner.cpp : Constructor take an optional TextTestRestult. The TextTestResult remain alive as long as the runner. Added result() to retreive the result. Printing the result is now optinal (enabled by default). 2001-10-05 Baptiste Lepilleur * include/cppunit/Asserter.h : * src/cppunit/Asserter.cpp : added. Helper to create assertion macros. * src/cppunit/cppunit.dsp : * src/cppunit/Makefile.am : * include/cppunit/Makefile.am : added Asserter.h and Asserter.cpp. * include/cppunit/Exception.h : * src/cppunit/Exception.cpp : added constructor that take a SourceLine argument. Deprecated static constant and old constructor. Fixed some constness issues. * examples/cppunittest/ExceptionTest.cpp : Refactored. * NEWS : partially updated (need to be more detailed) * include/cppunit/NotEqualException.h : * src/cppunit/NotEqualException.cpp : added constructor that take a SourceLine argument. Deprecated old constructor. Added a third element to compose message. * examples/cppunittest/NotEqualExceptionTest.cpp : moved to "Core" suite. Added test for SourceLine() and additionalMessage(). Refactored. * include/cppunit/SourceLine.h : * src/cppunit/SourceLine.cpp : added. Result of applying IntroduceParameterObject refactoring on filename & line number... * include/cppunit/TestAssert.h : * src/cppunit/TestAssert.cpp : deprecated old assert functions. added functions assertEquals() and assertDoubleEquals() which use SourceLine. * src/cppunit/TestCase.cpp : Modified for SourceLine. * include/cppunit/TestFailure.h : * src/cppunit/TestFailure.cpp : added failedTestName(), and sourceLine(). * src/msvc6/testrunner/TestRunnerDlg.cpp : modified to use SourceLine. * include/cppunit/TextTestResult.h : * src/cppunit/TextTestResult.cpp : corrected include order and switched to angled brackets. Refactored. Don't print failure location if not available. Not equal failure dump additional message if available. * src/cppunit/TextTestRunner.cpp : run() now returns a boolean to indicate if the run was sucessful. * src/cppunit/XmlTestResultOutputter.cpp : replaced itoa() with OStringStream. Refactored. * examples/cppunittest/XmlUniformiser.h : * examples/cppunittest/XmlUniformiser.cpp : CPPUNITTEST_ASSERT_XML_EQUAL capture failure location. Refactored checkXmlEqual(). * examples/cppunittest/XmlUniformiserTest.h : * examples/cppunittest/XmlUniformiserTest.cpp : added test for CPPUNITTEST_ASSERT_XML_EQUAL. * include/cppunit/XmlTestResultOutputter.h : * src/cppunit/XmlTestResultOutputter.cpp : updated to use SourceLine. 2001-10-05 Baptiste Lepilleur * NEWS : updated. * include/cppunit/Exception.h : added include Portability.h. * include/cppunit/TestResult.* : changed TestFailures to a deque. added tests(). * examples/cppunittest/CppUnitTest.dsp : * examples/cppunittest/MakeFile.am : * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp : Added XmlTestResultOutputterTest.*, XmlUniformiser.*, XmlUniformiserTest.*, UnitTestToolSuite.h, OutputSuite.h. * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp : revised project folders structure. Added missing NoteEqualExceptionTest.*. * examples/cppunittest/CppUnitTestSuite.cpp : added 'Output' and 'UnitTestTool' suites. * src/cppunit/cppunit.dsp: removed estring.h. Revised project folders structure. Removed TestRegistry.*. Added TestSetUp.h, XmlTestResultOutputter.*. * src/cppunit/MakeFile.am: added XmlTestResultOutputter.*. * src/testrunner/TestRunnerDlg.cpp: removed disabled code. 2001-10-03 Baptiste Lepilleur * include/cppunit/TestFailure.cpp : * include/cppunit/TestFailure.h : fixed some constness issues. Added argument to indicate the type of failure to constructor. Added isError(). * include/cppunit/TestListener.h : removed addError(). addFailure() now take a TestFailure as argument. * include/cppunit/TestResult.h : * include/cppunit/TestResult.cpp : removed errors(). Refactored. Fixed some constness issues. Added typedef TestFailures for vector returned by failures(). failures() returns a const reference on the list of failure. added testFailuresTotal(). Constructor can take an optional synchronization object. * include/cppunit/TextTestResult.h : * include/cppunit/TextTestResult.cpp : removed printErrors(). Refactored. Updated to suit new TestResult, errors and failures are reported in the same list. * examples/cppunittest/TestFailureTest.cpp : * examples/cppunittest/TestFailureTest.h : modified to use the new TestFailure constructor. Added one test. * examples/cppunittest/TestListenerTest.cpp: removed addError(). Refactored to suit new TestListener. * examples/cppunittest/TestResultTest.h : * examples/cppunittest/TestResultTest.cpp : modified to suit the new TestResult. 2001-10-02 Baptiste Lepilleur * include/cppunit/extensions/TestFactoryRegistry.h * src/cppunit/TestFactoryRegistry.cpp : fixed memory leaks that occured when a TestFactoryRegistry was registered into another TestFactoryRegistry. * include/cppunit/extensions/AutoRegisterSuite.h : updated doc. * include/cppunit/extensions/HelperMacros.h : added macro CPPUNIT_TEST_SUITE_NAMED_REGISTRATION to register a suite into a named suite. Updated doc. * examples/cppunittest/CoreSuite.h: * examples/cppunittest/ExtensionSuite.h: * examples/cppunittest/HelperSuite.h: added, declaration of suite for use with CPPUNIT_TEST_SUITE_NAMED_REGISTRATION. * examples/cppunittest/makefile.am : added HelperSuite.h, CoreSuite.h, ExtensionSuite.h, CppUnitTestSuite.h and CppUnitTestSuite.cpp. * examples/cppunittest/CppUnitTestSuite.*: added. * examples/cppunittest/ExceptionTest.cpp: * examples/cppunittest/TestAssertTest.cpp: * examples/cppunittest/TestCaseTest.cpp: * examples/cppunittest/TestFailureTest.cpp: * examples/cppunittest/TestListenerTest.cpp: * examples/cppunittest/TestResultTest.cpp: * examples/cppunittest/TestSuiteTest.cpp: moved into named suite "Core" using CPPUNIT_TEST_SUITE_NAMED_REGISTRATION. * examples/cppunittest/OrthodoxTest.cpp: * examples/cppunittest/RepeatedTest.cpp: * examples/cppunittest/TestDecoratorTest.cpp: * examples/cppunittest/TestSetUpTest.cpp: moved into named suite "Extension" using CPPUNIT_TEST_SUITE_NAMED_REGISTRATION. * examples/cppunittest/HelperMacrosTest.cpp: * examples/cppunittest/TestCallerTest.cpp: moved into named suite "Helper" using CPPUNIT_TEST_SUITE_NAMED_REGISTRATION. * examples/cppunittest/CppUnitTest.dsp : * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp : added Makefile.am, HelperSuite.h, CoreSuite.h, ExtensionSuite.h, CppUnitTestSuite.h and CppUnitTestSuite.cpp. 2001-10-01 Baptiste Lepilleur * NEWS : updated. * doc/other_documentation.dox : added all the authors to the list of authors. * examples/cppunittest/HelperMacrosTest.*: added unit tests for CPPUNIT_TEST_FAIL & CPPUNIT_TEST_EXCEPTION. * examples/cppunittest/TestAssertTest.*: added unit tests for CPPUNIT_FAIL. Corrected spelling error. Relaxed constraint on message produced by CPPUNIT_ASSERT_MESSAGE. Refactored some tests. * include/cppunit/extensions/HelperMacros.h : added macro CPPUNIT_TEST_EXCEPTION to create a test case for the specified method that must throw an exception of the specified type. * include/cppunit/extensions/TestSuiteBuilder.h : made makeTestName() public. Added addTestCallerForException() to add a test case expecting an exception of the specified type to be caught. * include/cppunit/TestAssert.h : added macro CPPUNIT_FAIL as a shortcut for CPPUNIT_ASSERT_MESSAGE( message, false ). 2001-09-30 Steve M. Robbins * configure.in: Set version to 1.7.0. 2001-09-30 Steve M. Robbins * Release 1.6.1. * doc/footer.html: Do not meddle with font size. * doc/header.html: Add link to FAQ. Do not meddle with font size. * doc/Doxyfile.in (PROJECT_NAME): Set to "CppUnit", to be consistent on capitalization. (PROJECT_NUMBER): Include "Version" in the string. * doc/Makefile.am (EXTRA_DIST): Distribute FAQ. * Makefile.am (EXTRA_DIST): Distribute contrib/msvc/CppUnit.WWTpl and contrib/msvc/readme.txt. (dist-hook): Change line endings of these files. * include/cppunit/extensions/RepeatedTest.h * src/cppunit/RepeatedTest.cpp (countTestCases, toString): Add const qualifier to function. 2001-09-30 Baptiste Lepilleur * contrib/msvc/CppUnit.WWTpl: added, template for WorkSpace Whiz! to create new classes and unit tests. * doc/FAQ: * INSTALL-WIN32.txt: moved FAQ from install-WIN32 to that file. Added a generic question to hint at the helper macros. * include/cppunit/extensions/HelperMacros.h: bug #464844, moved declaration of ThisTestCaseFactory from CPPUNIT_TEST_SUITE_END to CPPUNIT_TEST_SUITE where the Fixture class name is available from the macro parameter. 2001-09-30 Steve M. Robbins * include/cppunit/config-mac.h: New. Macintosh configuration, courtesy of Duane Murphy. * include/cppunit/Portability.h: Move include inside #if-block that needs it. * doc/Makefile.am (doc-dist): Creates tar file of HTML doc files. Remove all wildcarded filenames. Do not bother with manpages. * Makefile.am (EXTRA_DIST): Distribute INSTALL-unix and cppunit-config.1. (man_MANS): Install cppunit-config.1. (doc-dist): Use "make doc-dist" in doc directory. * cppunit-config.1: Document --prefix and --exec-prefix. * cppunit-config.in (Usage): Remove "[LIBRARIES]" from help string. 2001-09-29 Steve M. Robbins * configure.in: Set version to 1.6.1. 2001-09-29 Baptiste Lepilleur * example/cppunittest/TestCaller.*: remove some memory leaks. TestCaller exception catching features is now tested correctly. Previous test tested nothing! 2001-09-23 Steve M. Robbins * configure.in: Set version to 1.6.0. * Makefile.am (EXTRA_DIST): Add BUGS. * NEWS: Incorporate Baptiste's notes. * BUGS: New file for list of known bugs. * README: Note about file BUGS. 2001-09-24 Baptiste Lepilleur * include/cppunit/TestAssert.h : changed header order to remove warning on VC++ * include/cppunit/TestCaller.h : bugfix: threw 'new Exception' instead of 'Exception'. 2001-09-23 Steve M. Robbins * doc/footer.html: Put devel list in mailto tag. * doc/Makefile.am (man_MANS): Restore ability to install manpages. (htmldir): HTML pages installed under $(pkgdatadir). * doc/other_documentation.dox: Reference cookbook.html in same directory. Remove obsolete text. * configure.in: Do not set CFLAGS; remove --enable-debug-mode. * include/cppunit/Portability.h: * include/cppunit/extensions/HelperMacros.h: Allow user to request the old-style CU_TEST family of macros. * doc/Doxyfile.in (EXCLUDE_PATTERNS): Remove estring.h. * README: Add contact and bug-reporting info. * INSTALL-unix: New. Move the unix install notes here from README. * AUTHORS: Put myself on the list. 2001-09-21 Baptiste Lepilleur * include/cppunit/TestFailure.h : made destructor virtual. * INSTALL-WIN32.txt : added some more infos about DSPlugIn. * src/msvc6/DSPlugIn/DSPlugIn.rgs: added some registry data that where missing to register the COM object. * src/msvc6/DSPlugIn/DSPlugIn.rc: updated some dll version info. * src/msvc6/DSPlugIn/DSPlugIn.dsp: fixed the custom build step to register the DLL using regsvr32.exe. Added a post-build step to copy the dll to the lib/ directory. This prevent a blocking compilation error if the DLL is in use by VC++. 2001-09-20 Steve M. Robbins * Makefile.am (snapshot): Replace "date -I" GNUism with portable specification for ISO date format. (dist-hook): Correct rule to change line endings for INSTALL-WIN32.txt. * include/cppunit/Portability.h: * config/ac_cxx_have_strstream.m4 (AC_CXX_HAVE_STRSTREAM): Extend to check for and use in preference to . Patrick Hartling reports the former is required for the SGI MIPSpro 7.3.1.2 compiler. 2001-09-19 Baptiste Lepilleur * examples/cppunittest/makefile.am : added TestSetupTest.(cpp/h) * examples/examples.dsw: removed some unnecessary dependencies. * examples/msvc6/HostApp/HostApp.dsp: fixed release configuration * src/msvc6/DSPlugIn/DSPlugIn.dsp: fixed release configuration, and disabled the custom build command that does not work. * include/cppunit/extensions/HelperMacros.h: reordered header to remove some warning with VC++. * INSTALL-WIN32.txt : detailed what was in each project. Added a FAQ about the failing test case in cppunittest. 2001-09-19 Steve M. Robbins * README: Describe how to check if libtool is fixed. * Makefile.am (dist-hook): Include INSTALL-WIN32.txt in the list of files to convert to MSDOS line endings. (snapshot): Use ISO-8601 compliant date for filename. (ACLOCAL_AMFLAGS): Specify local directory. 2001-09-18 Steve M. Robbins * include/cppunit/TextTestResult.h: Change include from to . Sugggested by Peer Sommerlund. * include/cppunit/Portability.h: Qualify ostrstream with std. Suggested by Patrick Hartling. 2001-09-18 Baptiste Lepilleur * examples/examples.dsw: * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsw: * examples/msvc6/HostApp/HostApp.dsw: * examples/msvc6/TestPlugIn/TestPlugIn.dsw: Added missing project dependency. * src/msvc6/DSPlugIn/DSPlugIn.dsp: fixed *.tlb output directory. * include/msvc6/testrunner/TestPlugInInterface.h: does not define NOMINMAX if already defined. 2001-09-17 Baptiste Lepilleur * Makefile.am: Added INSTALL-WIN32.txt to EXTRA_DIST. * INSTALL-WIN32.txt: added, short documentation for CppUnit and VC++. * include/cppunit/extensions/HelperMacros.h: bug #448363, removed an extraneous ';' at the end of CPPUNIT_TEST_SUITE_END macro. * examples/cppunittest/TestCallerTest.cpp: bug #448332, fixed memory leaks. * src/msvc6/testrunner/TestRunnerDlg.h: * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.h: * src/msvc6/testpluginrunner/TestPlugInRunnerDlg.cpp: change to define IDD to a dummy value when subclassing the dialog. * src/cppunit/cppunit.dsp: * src/msvc6/testrunner/TestRunner.dsp: * src/msvc6/testpluginrunner/TestPlugInRunner.dsp: * examples/cppunitttest/CppUnitTestMain.dsp: * examples/hierarchy.dsp: * examples/msvc6/TestPlugIn/TestPlugIn.dsp: * examples/msvc6/HostApp/HostApp.dsp: all configurations can be compiled. * src/msvc6/testpluginrunner/TestPlugInRunner.dsw: added dependency to cppunit.dsp and TestRunner.dsp. 2001-09-16 Steve M. Robbins * Revert TestFixture-related changes from 2001-07-15: * src/cppunit/cppunit.dsp (SOURCE): Remove TestFixture.h. * src/cppunit/TestCase.cpp (setUp, tearDown): Restore function bodies. * include/cppunit/TestCase.h (class TestCase): Do not derive from class TestFixture. Restore member functions setUp() and tearDown(). * include/cppunit/TestCaller.h: Do not include . * include/cppunit/Makefile.am (libcppunitinclude_HEADERS): Remove TestFixture.h. 2001-09-14 Baptiste Lepilleur * src/msvc6/testrunner/TestRunner.dsp: fixed release configuration. * src/msvc6/testrunner/TestRunner.dsw: added DSPlugIn.dsp. TestRunner depends on DSPlugIn. * src/msvc6/testrunner/TestRunner.cpp: * src/msvc6/testrunner/TestRunnerDlg.h: * src/msvc6/testrunner/TestRunnerDlg.cpp: * src/msvc6/testrunner/MsDevCallerListCtrl.cpp: * src/msvc6/testrunner/MsDevCallerListCtrl.h: * src/msvc6/DSPlugIn/*: integrated patch from Patrick Berny (PPBerny@web.de). An add-ins for VC++. Double-cliking a failed test in the TestRunner, VC++ will open the source file and go to the failure location. * src/cppunit/Exception.cpp: * include/cppunit/Exception.h: compile fix, call to overrided operator = of parent class failed. Using typedef to the parent class fix that. * src/cppunit/cppunit.dsp: added TestFixture.h * src/cppunit/TestFactoryRegistry.cpp: removed which isn't needed any more. * include/cppunit/TestCase.h: * include/cppunit/TestSuite.h: * include/cppunit/extensions/TestFactoryRegistry.h: added include before any other includes to remove warning with VC++. * include/cppunit/Portability.h: moved platform specific includes at the beginning of the header. fixed CPPUNIT_HAVE_CPP_SOURCE_ANNOTATION declaration. * include/cppunit/config-msvc6.h: removed pragma once (useless, should be put in each header to have an effect). 2001-08-07 Steve M. Robbins * doc/Makefile.am: Add workaround for broken Doxygen. * src/cppunit/TextTestResult.cpp (operator<<): Remove CppUnit:: prefix. * configure.in: Add check for . * src/cppunit/TestAssert.cpp: Use if not available. * src/cppunit/TestCase.cpp: Do not include . * include/cppunit/config-bcb5.h (HAVE_CMATH): * include/cppunit/config-msvc6.h (HAVE_CMATH): Add. * src/cppunit/Exception.cpp: Qualify std::exception. * examples/cppunittest/OrthodoxTest.h (TestCase): Add assignment operator. MIPSpro fails to compile without one. * Makefile.am: Removed automake conditional "DOC". * doc/Makefile.am: Placed "DOC" conditional around rules that invoke Doxygen. * config/Makefile.am: Removed. * configure.in: Do not create config/Makefile. * Makefile.am (EXTRA_DIST): Distribute config/*.m4. (SUBDIRS): Do not descend into config. 2001-07-15 Steve M. Robbins * include/cppunit/TestFixture.h: New. Declare class TextFixture. * include/cppunit/TestCaller.h: * include/cppunit/TestCase.h: * src/cppunit/TestCase.cpp: * include/cppunit/Makefile.am: Subclass TestCase from TestFixture. 2001-07-14 Steve M. Robbins * include/cppunit/Exception.h: * include/cppunit/Test.h: * include/cppunit/TestCaller.h: * include/cppunit/TestCase.h: * include/cppunit/TestFailure.h: * include/cppunit/TestListener.h: * include/cppunit/TestSuite.h: * include/cppunit/extensions/RepeatedTest.h: * include/cppunit/extensions/TestDecorator.h: * src/cppunit/TestCase.cpp: Add documentation. 2001-07-13 Steve M. Robbins * examples/cppunittest/TestAssertTest.h: * examples/cppunittest/TestAssertTest.cpp: Add tests for CPPUNIT_ASSERT_EQUAL. 2001-07-12 Steve M. Robbins * configure.in: Set to version 1.5.6. On the assumption that backwards compatibility has been broken (though I'm not certain), set the binary age and interface age to zero. * examples/cppunittest/TestFailureTest.h: * include/cppunit/Exception.h: * include/cppunit/NotEqualException.h: * src/cppunit/Exception.cpp: * src/cppunit/NotEqualException.cpp: Add "throw()" to overridden std::exception destructors; required for GCC 3.0. 2001-07-07 Steve M. Robbins * include/cppunit/Makefile.am: Clean config-auto.h using DISTCLEANFILES. * doc/Makefile.am: Temporarily disable manpage installation. Fix html installation to ensure files removed by uninstall. * src/cppunit/estring.h: Removed. * src/cppunit/Makefile.am: * src/cppunit/TestCase.cpp: * src/cppunit/TextTestResult.cpp: Recode to avoid use of estring. * examples/cppunittest/OrthodoxTest.h: Add const qualifier to operator== methods. * include/cppunit/config-bcb5.h: * include/cppunit/config-msvc6.h: Define CPPUNIT_HAVE_SSTREAM to 1. * config/ac_cxx_have_sstream.m4: New. Defines macro AC_CXX_HAVE_SSTREAM. Taken from the autoconf archive. * config/ac_cxx_have_strstream.m4: New. Copy of above, modified to check for presence of strstream; defines macro AC_CXX_HAVE_STRSTREAM. * configure.in: Invoke AC_CXX_HAVE_SSTREAM and AC_CXX_HAVE_STRSTREAM. * include/cppunit/Portability.h: Define class CppUnit::OStringStream. * include/cppunit/TestAssert.h: * src/cppunit/TestFactoryRegistry.cpp: Replace std::ostringstream by CppUnit::OStringStream. 2001-07-06 Steve M. Robbins * configure.in: Add --disable-typeinfo-name option. * README: Add note about new configure option. * configure.in: Remove AM_DISABLE_STATIC. * INSTALL: Update to version from autoconf 2.50. 2001-07-05 Steve M. Robbins * include/cppunit/Portability.h: Remove definition of CPPUNIT_USE_TYPEINFO. * configure.in: Define USE_TYPEINFO_NAME in config.h. * include/cppunit/config-msvc6.h (CPPUNIT_USE_TYPEINFO_NAME): * include/cppunit/config-bcb5.h (CPPUNIT_USE_TYPEINFO_NAME): Add definition. * include/cppunit/TestCaller.h: * include/cppunit/extensions/TypeInfoHelper.h: * include/cppunit/extensions/TestSuiteBuilder.h: * include/cppunit/extensions/HelperMacros.h: * src/cppunit/TypeInfoHelper.cpp: * src/cppunit/TestFactoryRegistry.cpp: * src/cppunit/TestCase.cpp (toString): Switch from CPPUNIT_USE_TYPEINFO to CPPUNIT_USE_TYPEINFO_NAME. * src/cppunit/TestAssert.cpp: Remove include of estring.h. * configure.in: Invoke AC_PROG_CC to workaround a automake bug. Move probes for CC/CXX ahead of the libtool macros. * examples/hierarchy/Makefile.am: * examples/cppunittest/Makefile.am: * src/cppunit/Makefile.am (INCLUDES): Search $(top_builddir)/include for . 2001-06-27 Baptiste Lepilleur * examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp: moved dll copy from post-build to custom build setting, so that the dll is copied even if the CppUnitTestApp was not modified. * examples/msvc6/TestPlugIn/: a new example of test plug in. * src/msvc6/TestRunner/ListCtrlFormatter.* * src/msvc6/TestRunner/ListCtrlSetter.*: added, helper to manipulate list control. * src/msvc6/TestRunner/TestRunnerDlg.*: change to make the error list more compact. text moved to string resources. icons added for typ test tfailure type. * src/msvc6/TestRunner/MostRecentTests.*: added, classes that will replace the current implementation of MRU test which make it hard to subclass the dialog. * src/msvc6/TestRunner/res/errortype.bmp: added, bitmap with error types (failure and error). * src/msvc6/TestPlugInRunner/: A test runner to run test plug in. Test plug in are DLL that publish a specified plug in interface. Those DLL are loaded and reloaded by the TestPlugInRunner to run tests. This remove the need to wrap DLL with a executable to test them. * src/cppunit/cppunit.dsp: removed config.h from project added Portability.h and config-msvc6.h * include/cppunit/config-msvc6.h: undef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST 2001-06-20 Steve M. Robbins * autogen.sh: Stop when tool fails. Try /usr/local/share/aclocal only if aclocal fails without it. * README.CVS: New. 2001-06-18 Steve M. Robbins * include/cppunit/Portability.h (CPPUNIT_USE_TYPEINFO): (CPPUNIT_ENABLE_NAKED_ASSERT): (CPPUNIT_HAVE_CPP_SOURCEANNOTATION): Fix setting of default values. 2001-06-17 Steve M. Robbins * configure.in: Require autoconf 2.50 or better. 2001-06-17 Bastiaan Bakker * configure.in: moved config.h from include/ to config/ * configure.in: added AC_CREATE_PREFIX_CONFIG_H call * config/ac_create_prefix_config_h.m4: added * configure.in: removed include/cppunit/config.h from AC_OUTPUT * include/cppunit/config.h.in: obsoleted by AC_CREATE_PREFIX_CONFIG_H macro. * configure.in: * config/bb_enable_doxygen.m4: moved doxygen stuff into BB_ENABLE_DOXYGEN macro * include/cppunit/Makefile.am: removed config.h, added config-auto.h, config-msvc6.h, config-bcb5.h, Portability.h * include/cppunit/Makefile.am: added dist-hook to exclude config-auto.h from dist tar * include/cppunit/TestAssert.h: * include/cppunit/extensions/TypeInfoHelper.h: * include/cppunit/extensions/TestSuiteBuilder.h: * include/cppunit/extensions/HelperMacros.h: * src/cppunit/TypeInfoHelper.cpp: * src/cppunit/TestRegistry.cpp: * src/cppunit/TestFactoryRegistry.cpp: * src/cppunit/TestCase.cpp: replaced #include of with * src/cppunit/TypeInfoHelper.cpp: use new macro name CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST 2001-06-12 Baptiste Lepilleur * include/cppunit/NotEqualException.h * src/cppunit/NotEqualException.h: Fixed constructor and operator = (aren't unit test nice?). Added methods expectedValue() and actualValue(). * include/cppunit/TestAssert.h: * src/cppunit/TestAssert.cpp: Use NotEqualException to report equality failure. * src/cppunit/TestFactoryRegistry.cpp: fixed makeTest(). It did not use m_name for naming the suite. * src/cppunit/TestResult.cpp: Report expect/was on different line for assertEquals failure. * examples/cppunittest/NotEqualExceptionTest.*: added unit tests for NotEqualException. * examples/cppunittest/OrthodoxTest.*: operator ! use explicit construction. * examples/msvc6/CppUnitTestApp/CppUnitTestApp.cpp: modified so that the dialog is not displayed after the tests are run. 2001-06-11 Steve M. Robbins * examples/cppunittest/TestResultTest.cpp (testAddTwoErrors, testAddTwoFailures): Replace vector::at() with more portable vector::operator[]; GCC doesn't have the former. * include/cppunit/extensions/TestDecorator.h (countTestCases): Declare return type. * src/cppunit/Makefile.am (libcppunit_la_SOURCES): Add TestAssert.cpp, RepeatedTest.cpp. * include/cppunit/TestCaller.h (NoExceptionExpected): Fix constructor name. 2001-06-11 Baptiste Lepilleur * include/cppunit/Exception.h: now inherit from std::exception instead of ::exception. Added clone(), type(), and isInstanceOf() methods for subclassing support. Changed UNKNOWNLINENUMBER type to long for consistence with lineNumber(). * include/cppunit/NotEqualException.h: addded, exception to be used with assertEquals(). * include/cppunit/TestAssert.h: changed TestAssert into a namespace instead of a class. This remove the need of template member methods and does not cause compiler internal error on VC++. Macro CPPUNIT_ASSERT_MESSAGE has been added to fail test with a specified message. * include/cppunit/TestCaller.h: added "Expected exception" support. Based on Tim Jansen patch (#403745), but use a traits instead of RTTI to distingh between "No expected exception" and "Excepted exception". Exception type name is reported using RTTI if CPPUNIT_USE_TYPEINFO is defined. * include/cppunit/extensions/HelperMacros.h: static method suite() implemented by CPPUNIT_TEST_SUITE_END macro now returns a TestSuite instead of a Test. * include/cppunit/extensions/RepeatedTest.h: corrected countTestCases, operator = declaration. * include/cppunit/extensions/TestDecorator.h: removed const from run() method. Did not match run() declaration of Test class. * include/cppunit/extensions/TestFactory.h: fixed a comment. * include/cppunit/extensions/TestSetup.h: corrected run() method declaration. Methods setUp() and tearDown() were not declared virtual. * include/cppunit/extensions/TestSuiteBuilder.h: added a method addTestCaller() which take a pointer on a fixture. * include/cppunit/NotEqualException.cpp: addded, exception to be used with assertEquals(). * src/cppunit/RepeatedTest.cpp: added to reduce header dependency (TestResult.h was missing). * src/cppunit/TestAssert.cpp: added to put non template functions there. * src/cppunit/TestCase.cpp: added std:: prefix to catch (exception& e). Integrated a modified version of Tim Jansen patch (#403745) for TestCase to make the unit test (TestCaseTest) pass. If the setUp() fail then neither the runTest() nor the tearDown() method is called. * examples/examples.dsw: added cppunittest projects to workspace. * examples/cppunittest/TestResultTest.*: renamed TestListenerTest.* * examples/cppunittest/*: added unit tests for: HelperMacros, TestAssert, TestCaller, TestCase, TestFailure, TestResult, TestSuite, TestDecoratorTest, TestSetUp, RepeatedTestTest, Orthodox, Exception. 2001-06-05 Baptiste Lepilleur * src/cppunit/TypeInfoHelper.cpp: removed #include , cppunit/config.h was already included. * src/cppunit/cppunit.dsp: removed TestAssert.cpp from project. * added/updated .cvsignore files for beter handling of windows projects. * added include/cppunit/config.h with a default configuration for VC++ 6.0. * include/cppunit/.cvsignore: removed config.h from the list of ignored file. * renamed VC++ configurations without RTTI from "Debug No CU_USE_TYPEINFO" to "Debug Crossplatform". * include/cppunit/TestAssert.h: added include for fabs(). 2001-06-02 Steve M. Robbins * src/cppunit/Exception.cpp: Remove unnecessary namespace declaration; it confuses Doxygen. 2001-06-02 Steve M. Robbins * configure.in: Add AC_CXX_STRING_COMPARE_STRING_FIRST. * autogen.sh: Add "-I config" to aclocal flags, to pick up the new .m4 files. * config/ac_cxx_namespaces.m4: New. Taken from http://cryp.to/autoconf-archive. * config/ac_cxx_string_compare_string_first.m4: New. Detect if std::string::compare() takes string argument first. 2001-06-02 Steve M. Robbins * include/cppunit/TestAssert.h: Declare generic assertion_traits class. Replace notEqualsMessage functions for long and double by a generic, template function. Replace assertEquals for longs by a generic template function. Inline all class methods. Define new assertion macros CPPUNIT_ASSERT, CPPUNIT_ASSERT_EQUAL, and CPPUNIT_ASSERT_DOUBLES_EQUAL; the old names are available by editing . * src/cppunit/TestAssert.cpp: Removed. Move code to inline functions. * config/ac_cxx_rtti.m4: New. Taken from http://cryp.to/autoconf-archive. * include/cppunit/config.h.in: New. Input file for installable, generated config.h file. * configure.in: Use AC_CXX_RTTI; generate include/cppunit/config.h. * include/cppunit/extensions/HelperMacros.h: * include/cppunit/extensions/TestSuiteBuilder.h: * include/cppunit/extensions/TypeInfoHelper.h: * src/cppunit/TestCase.cpp: * src/cppunit/TestFactoryRegistry.cpp: * src/cppunit/TypeInfoHelper.cpp: Use "#if CPPUNIT_USE_TYPEINFO" rather than "#ifdef". * src/cppunit/TypeInfoHelper.cpp: Allow for std::string::compare() that takes the string in the first argument. * doc/cookbook.html: * examples/cppunittest/TestCallerTest.cpp: * examples/cppunittest/TestResultTest.cpp: * examples/hierarchy/BoardGameTest.h: * examples/hierarchy/ChessTest.h: * examples/msvc6/HostApp/ExampleTestCase.cpp: * include/cppunit/TestCase.h: * include/cppunit/extensions/Orthodox.h: Replace assert by CPPUNIT_ASSERT. Replace assertLongsEqual by CPPUNIT_ASSERT_EQUAL. Replace assertDoublesEqual by CPPUNIT_ASSERT_DOUBLES_EQUAL. * * (CU_TEST_SUITE, CU_TEST, CU_TEST_SUITE_END, CU_TEST_SUITE_REGISTRATION): Replace prefix CU_ with CPPUNIT_. * examples/cppunittest/.cvsignore: Add UNIX generated files. 2001-06-01 Bastiaan Bakker * examples/cppunittest/Makefile.am: added * configure.in: added examples/cppunittest/Makefile to AC_OUTPUT. * examples/cppunittest/TestCallerTest (suite), examples/cppunittest/TestResultTest (suite): fixed 'ISO C++ forbids taking the address of a bound member function to form a pointer to member function' bug reported by g++. * examples/cppunittest/TestCallerTest (suite), examples/cppunittest/TestResultTest (suite): removed dependency on RTTI. 2001-06-01 Baptiste Lepilleur * added project cppunittest to examples/: unit tests to test cppunit. The main file is CppUnitTestMain.cpp. Unit tests have been implemented for TestCaller and TestListener. * added project CppUnitTestApp to examples/msvc6: graphical runner for cppunittest. * added TestListener to TestResult. It is a port of junit TestListener. * updated some .cvsignore to ignore files generated with VC++. 2001-05-30 Bastiaan Bakker * src/cppunit/TestCase.cpp (toString): put type_info in std namespace and inside CU_USE_TYPEINFO ifdef. 2001-05-29 Steve M. Robbins * examples/hierarchy/main.cpp: Remove extraneous includes. * src/cppunit/TextTestResult.cpp (addError, addFailure): Do not emit a newline. * include/cppunit/extensions/HelperMacros.h: Rework documentation. (CU_TEST_SUITE): Move definition of member function suite() ... (CU_TEST_SUITE_END): ... to here. (CU_TEST): Use '&' to take address of member function "testMethod". * include/cppunit/extensions/AutoRegisterSuite.h: Declare "factory" as a TestFactory*. 2001-05-28 Steve M. Robbins * doc/other_documentation.dox: Don't include "CppUnit" in anchor text, since Doxygen puts its own anchor around it. * doc/Makefile.am (html/index.html): Depend on other_documentation.dox. * doc/Doxyfile.in (EXCLUDE): Move config.h and estring.h to EXCLUDE_PATTERNS; they were not being excluded. * ChangeLog: Reformat all entries to start with . See for change log format. * doc/cookbook.html: Update all code examples, except for TestRunner section. 2001-05-23 Baptiste Lepilleur * Updated CU_TEST_SUITE macro documentation. It is now stated explicitly that you do not need to specify template parameter as macro argument. The documentation example has been updated to reflect that. 2001-05-23 Bastiaan Bakker * autogen.sh: added '--add-missing' option to automake. * autogen.sh: added '--force' option to libtoolize and removed '--copy'. * config: removed generated files from CVS. 2001-05-20 Baptiste Lepilleur * Fixed bug #424320 (VC++ TestRunner): access violation caused by NULL pointer in history list. NULL pointer are not added to the history anymore. 2001-05-19 Baptiste Lepilleur * Added some items to the TODO list for VC++ TestRunner. * "Debug" configuration is now the default configuration in VC++ project. * Modified sort order in the test browser of VC++ TestRunner so that tests are in the same order as in the suite. Suites are still sorted alphabetically. * Merged Steve M. Robbins patch to replace assertImplementation with assert in hierarchy example. * Added a TextTestRunner to runner tests. It is based on Michael Feather's version, but have been rewriten. * Removed traces that printed the test name in TextTestResult while running. * Added the test name to error and failure report in TextTestResult. * Updated hierarchy example to use TextTestRunner. 2001-05-18 Baptiste Lepilleur * Symbol CU_USE_TYPEINFO must be defined instead of USE_TYPEINFO to compile RTTI. * Added back default constructor to TestSuiteBuilder which use RTTI. It is available only if CU_USE_TYPEINFO is defined. * Moved TypeInfoHelper.h from src/cppunit to include/cppunit/extensions. * Macro CU_TEST_SUITE in HelperMacros.h now use TestSuiteBuilder default constructor if CU_USE_TYPEINFO is defined, otherwise it use the type name given to the CU_TEST_SUITE macro. * TestFactoryRegistry::registerFactory(factory) now generate a dummy name based on a serial number instead of using RTTI. The macro CU_TEST_SUITE_REGISTRATION and class AutoRegisterSuite can now when CU_USE_TYPEINFO is not defined. * Added a new Configuration named "Debug Without CU_USE_TYPEINFO" to msvc6 projects. The flag CU_USE_TYPEINFO is not defined in that configuration. 2001-05-17 Steve M. Robbins * Makefile.am (dist-hook): Copy files relative to $(top_srcdir). * doc/Makefile.am: Generated doc files depend on Doxyfile. * doc/Doxyfile.in: Use autoconf substitutions in file names. * examples/hierarchy/Makefile.am (check_PROGRAMS): Build hierarchy with "make check", not "make all". * examples/hierarchy/Makefile.am (INCLUDES): * src/cppunit/Makefile.am (INCLUDES): Search in $(top_srcdir)/include. * Added .cvsignore files. 2001-05-16 Bastiaan Bakker * Merged Debian packaging support files by Christian Leutloff from debian package version 1.5.4-2. Added make target 'debian' for debian package creation. 2001-05-09 Bastiaan Bakker * Release as 1.5.5. * Finished CppUnitW 1.2 merge. Removed RTTI depency from TestSuite. Added TestCaller constructor for calling methods in existing TestCases. 2001-04-29 Bastiaan Bakker * Merged Baptiste Lepilleurs CppUnitW 1.2. Some differences: TypeInfo stuff (in TestSuite) compiled in only if USE_TYPEINFO is set. TestSuite.getTests now returns a const ref instead of taking a ref as parameter. Removed auto_ptr stuff from TestFactoryRegistry: auto_ptr cannot be used in containers. 2001-04-28 Bastiaan Bakker * Merged MSVC++ specific TestRunner and example adapted from Micheal Feathers version by Baptiste Lepilleur. * Moved cppunit subdir into src. 2001-04-24 Bastiaan Bakker * Merged Baptiste Lepilleurs patch for TestRegistry: now TestCases do not automatically register with the Registry anymore. * Added extension headers from Micheal Feathers port to include/cppunit/extensions. 2001-04-19 Bastiaan Bakker * Added MSVC++ workspace and project files, submitted by Baptiste Lepilleur. 2001-04-15 Bastiaan Bakker * Moved public headers from cppunit into new subdir include/cppunit. This should make more clear which headers are used internally only (like estring.h). * Moved autoconf auxiliary stuff into new subdir config, to make the top dir less crowded. * Prefixed std:: to cerr, cout and endl. 2001-04-14 Bastiaan Bakker * Release as 1.5.4 * Added support for RPM generation. * Added autoconf support for Doxygen document generation: Doxygen and GraphViz dot are automatically detected and LaTeX and HTML can be switch on or off. * cppunit/TextTestResult.cpp: changed cout to stream. Fixes bug #232636 * cppunit/TextTestReulst.cpp: add '#include '. Fixes bug #223290 * cppunit/*.cpp: removed bogus 'inline' specifiers. Fixes bug #224542 and #223291. * doc/header.html: corrected link to CppUnit project page Fixes bug #414073 * cppunit/*.cpp, examples/hierarchy/main.cpp: removed all 'using namespace ...' occurences. 2001-01-31 Tim Jansen * cppunit/TestCase.cpp, cppunit/TestCase.h, cppunit/TestSuite.h, cppunit/TestSuite.cpp: applied patch #402271 by bwithrow. Fixes bug #220207 * cppunit/TestSuite.cpp (deleteContents): clear vector after contents have been deleted (so there are no invalid pointers in the vector) Patch #403540 / #403542 * cppunit/TestCaller.h: create Fixture with empty constructor so that only the TestCaller but not the Fixture instance is registered in the TestRegistry Patch #403541 / #403542 * examples/hierarchy/BoardGameTest.h, examples/hierarchy/ChessTest.h, examples/hierarchy/main.cpp: initialize example TestCases with TestSuite so that the TestCallers are registered in the TestRegistry Patch #403542. Fixes bug #415249 * cppunit/TestCaller.h, cppunit/TestCase.cpp, cppunit/TestCase.h: changed documentation; made hopefully clearer which constructor registers the instance in the TestRegistry; corrected syntax in code example Patch #403542.