summaryrefslogtreecommitdiff
path: root/include/cppunit
Commit message (Collapse)AuthorAgeFilesLines
...
* Makefile.Baptiste Lepilleur2001-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Revert TestFixture-related changes from 2001-07-15.Steve M. Robbins2001-09-163-8/+8
|
* Src/msvc6/testrunner/TestRunner.Baptiste Lepilleur2001-09-146-15/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 <utility> which isn't needed any more. * include/cppunit/TestCase.h: * include/cppunit/TestSuite.h: * include/cppunit/extensions/TestFactoryRegistry.h: added include <Portability.h> 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).
* Fixes to allow building with SGI MIPSpro 7.30 compiler.Steve M. Robbins2001-08-072-0/+4
| | | | | | The testsuite file examples/cppunittest/SubclassedTestCase.cpp causes the compiler to dump core, so that and HelperMacrosTest were not tested. The rest of the test suite passes.
* TextFixture introduced. First steps at using it.Steve M. Robbins2001-07-154-6/+37
|
* Added documentation.Steve M. Robbins2001-07-159-401/+453
|
* Fixes for GCC 3.0Steve M. Robbins2001-07-122-2/+3
|
* Tighten up build process to ensure "make distcheck" works with CVS automake.Steve M. Robbins2001-07-071-4/+2
|
* Use strstream if stringstream unavailable.Steve M. Robbins2001-07-074-3/+39
|
* Change from CPPUNIT_USE_TYPEINFO to CPPUNIT_USE_TYPEINFO_NAMESteve M. Robbins2001-07-067-18/+22
|
* Examples/msvc6/CppUnitTestApp/CppUnitTestApp.Baptiste Lepilleur2001-06-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix option setting.Steve M. Robbins2001-06-181-8/+13
|
* Added for new config handling.Bastiaan Bakker2001-06-173-0/+119
|
* Add AC_PREREQ; remove include/cppunit/config.hSteve M. Robbins2001-06-171-37/+0
|
* Obsoleted by AC_CREATE_PREFIX_CONFIG_H macro.Bastiaan Bakker2001-06-171-16/+0
|
* Added newline at end of file.Bastiaan Bakker2001-06-171-1/+1
|
* Replaced #include of <config.h> with <cppunit/Portability.h>Bastiaan Bakker2001-06-174-4/+4
|
* Removed config.h, added config-auto.h, config-msvc6.h, config-bcb5.h, ↵Bastiaan Bakker2001-06-171-1/+7
| | | | | | Portability.h added dist-hook to exclude config-auto.h from dist tar
* Include/cppunit/NotEqualException.Baptiste Lepilleur2001-06-122-37/+38
| | | | | | | | | | | | | | | | | 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/TestResult.cpp: Report expect/was on different line for assertEquals failure. * examples/cppunittest/NotEqualExceptionTest.*: added unit tests for NotEqualException.
* Revert unintended commitSteve M. Robbins2001-06-111-0/+21
|
* *** empty log message ***Steve M. Robbins2001-06-111-21/+0
|
* Fixes for test suiteSteve M. Robbins2001-06-111-1/+1
|
* Bug fixSteve M. Robbins2001-06-111-1/+1
|
* Include/cppunit/Exception.Baptiste Lepilleur2001-06-117-50/+151
| | | | | | | | | | | | | | | | | | | | | | 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.Baptiste Lepilleur2001-06-118-65/+81
| | | | | | | | | | | | | | | | | | | | 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.
* Renamed from TestSetup.hBastiaan Bakker2001-06-111-0/+35
|
* Renamed to TestSetUp.hBastiaan Bakker2001-06-111-35/+0
|
* Include/extensions/TestSetup.h: renamed TestSetUp.h for consistency.Baptiste Lepilleur2001-06-101-0/+35
|
* Include/extensions/TestSetup.h: renamed TestSetUp.h for consistency.Baptiste Lepilleur2001-06-101-35/+0
|
* Src/cppunit/TypeInfoHelper.Baptiste Lepilleur2001-06-052-0/+37
| | | | | | | | | | | | | | | | src/cppunit/TypeInfoHelper.cpp: removed #include <config.h>, 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 <math.h> for fabs().
* Determine string::compare() weirdness automatically.Steve M. Robbins2001-06-021-5/+0
|
* Change to templatized TestAssert::assertEquals() and the new CPPUNIT_ASSERT* ↵Steve M. Robbins2001-06-028-45/+126
| | | | macros
* Replace CU_ by CPPUNIT_.Steve M. Robbins2001-06-024-52/+52
|
* Added project cppunittest to examples/: unit tests to test cppunit.Baptiste Lepilleur2001-06-013-1/+36
| | | | | | | | | | 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++.
* Fix CU_TEST* macros and their documentation.Steve M. Robbins2001-05-292-48/+71
|
* * Updated CU_TEST_SUITE macro documentation. It is now stated explicitlyBaptiste Lepilleur2001-05-231-2/+2
| | | | | that you do not need to specify template parameter as macro argument. The documentation example has been updated to reflect that.
* Updated Makefile.am's to reflect Baptistes file additions and removals.Bastiaan Bakker2001-05-192-2/+6
|
* * Merged Steve M. Robbins patch to replace assertImplementation with assert ↵Baptiste Lepilleur2001-05-191-0/+52
| | | | | | | | | 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.
* :registerFactory(factory) now generate a dummy name based on a serial number ↵Baptiste Lepilleur2001-05-184-8/+64
| | | | | | | | | | | | | | | | | | | | instead of using RTTI. * 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.
* Got in by accident: removed again.Bastiaan Bakker2001-05-161-247/+0
|
* Added constructors to TestCaller which accept an already constucted Fixture.Bastiaan Bakker2001-05-062-22/+59
|
* Should not be in CVS.Bastiaan Bakker2001-05-061-247/+0
|
* Renamed AbstractTestFactory to TestFactory.Bastiaan Bakker2001-05-067-16/+16
|
* Removed unnecessary #include's of TestSuiteBuilder.hBastiaan Bakker2001-05-067-17/+14
| | | | Removed RTTI dependent stuff from TestSuite and TestSuiteBuilder.
* Fixed #include's for cppunit headers.Bastiaan Bakker2001-05-0618-101/+55
|
* Merge of CppUnitW 1.2 phase 2.Bastiaan Bakker2001-05-053-5/+8
|
* Merged Baptiste Lepilleurs CppUnitW 1.2.Bastiaan Bakker2001-04-2915-62/+1003
| | | | | | | | 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 param. Removed auto_ptr stuff from TestFactoryRegistry: auto_ptr cannot be used in containers.
* Merged Baptiste Lepilleurs patch for TestRegistry: now TestCases do not ↵Bastiaan Bakker2001-04-231-1/+5
| | | | automatically register with the Registry anymore.
* Merged extension headers back in from Micheal Feathers version.Bastiaan Bakker2001-04-226-0/+271
|
* Added MSVC++ workspace and project files.Bastiaan Bakker2001-04-191-1/+1
|