summaryrefslogtreecommitdiff
path: root/src/cppunit
Commit message (Collapse)AuthorAgeFilesLines
...
* NEWS : updated.Baptiste Lepilleur2001-10-054-44/+387
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Include/cppunit/TestFailure.Baptiste Lepilleur2001-10-033-164/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Include/cppunit/extensions/TestFactoryRegistry.Baptiste Lepilleur2001-10-021-19/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Distribute contrib/msvc/*.Steve M. Robbins2001-09-301-2/+2
| | | | Add const qualifier to countTestCases() and toString() of RepeatedTest.
* Revert TestFixture-related changes from 2001-07-15.Steve M. Robbins2001-09-162-4/+10
|
* Src/msvc6/testrunner/TestRunner.Baptiste Lepilleur2001-09-143-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-074-5/+8
| | | | | | 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-151-10/+0
|
* Added documentation.Steve M. Robbins2001-07-151-29/+29
|
* Fixes for GCC 3.0Steve M. Robbins2001-07-122-2/+2
|
* Removed last uses of estring.Steve M. Robbins2001-07-074-93/+61
|
* *** empty log message ***Steve M. Robbins2001-07-071-1/+1
|
* Use strstream if stringstream unavailable.Steve M. Robbins2001-07-071-6/+6
|
* Change from CPPUNIT_USE_TYPEINFO to CPPUNIT_USE_TYPEINFO_NAMESteve M. Robbins2001-07-064-10/+11
|
* Fix configure and include bugs.Steve M. Robbins2001-07-051-2/+2
|
* Examples/msvc6/CppUnitTestApp/CppUnitTestApp.Baptiste Lepilleur2001-06-271-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Added newline at end of file.Bastiaan Bakker2001-06-171-1/+1
|
* Replaced #include of <config.h> with <cppunit/Portability.h>Bastiaan Bakker2001-06-173-12/+3
|
* Use new macro name CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRSTBastiaan Bakker2001-06-171-2/+2
| | | | replaced #include of <config.h> with <cppunit/Portability.h>
* src/cppunit/TestFactoryRegistry.cpp: fixed makeTest(). It did not use m_name forBaptiste Lepilleur2001-06-121-1/+1
| | | | naming the suite.
* Include/cppunit/NotEqualException.Baptiste Lepilleur2001-06-123-9/+51
| | | | | | | | | | | | | | | | | 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-1/+0
|
* *** empty log message ***Steve M. Robbins2001-06-111-0/+1
|
* Fixes for test suiteSteve M. Robbins2001-06-111-1/+2
|
* Add missing source file.Steve M. Robbins2001-06-111-1/+2
|
* Include/cppunit/NotEqualException.Baptiste Lepilleur2001-06-117-45/+242
| | | | | | | | | | | | | | | | | 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.
* Src/cppunit/TypeInfoHelper.Baptiste Lepilleur2001-06-052-16/+15
| | | | | | | | | | | | | | | | 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().
* Remove unnecessary namespaceSteve M. Robbins2001-06-021-5/+1
|
* Determine string::compare() weirdness automatically.Steve M. Robbins2001-06-021-1/+2
|
* Change to templatized TestAssert::assertEquals() and the new CPPUNIT_ASSERT* ↵Steve M. Robbins2001-06-025-67/+20
| | | | macros
* Replace CU_ by CPPUNIT_.Steve M. Robbins2001-06-024-16/+16
|
* Added project cppunittest to examples/: unit tests to test cppunit.Baptiste Lepilleur2001-06-012-14/+98
| | | | | | | | | | 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++.
* (toString): put type_info in std namespace and inside CU_USE_TYPEINFO ifdef.Bastiaan Bakker2001-05-301-2/+10
|
* Fix output of TextTestResultSteve M. Robbins2001-05-291-5/+2
|
* Updated Makefile.am's to reflect Baptistes file additions and removals.Bastiaan Bakker2001-05-191-2/+2
|
* Modified VC++ project to add TextTestRunner to cppunit lib.Baptiste Lepilleur2001-05-191-0/+8
|
* * Merged Steve M. Robbins patch to replace assertImplementation with assert ↵Baptiste Lepilleur2001-05-192-3/+109
| | | | | | | | | 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-55/+57
| | | | | | | | | | | | | | | | | | | | 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.
* Merged fixes for distcheck target, contributed by Steve M. Robbins ↵Bastiaan Bakker2001-05-171-3/+2
| | | | <steve@nyongwa.montreal.qc.ca>.
* Forgotten in CppUnitW 1.2 merge.Bastiaan Bakker2001-05-151-0/+56
|
* Renamed AbstractTestFactory to TestFactory.Bastiaan Bakker2001-05-062-5/+5
|
* Removed unnecessary #include's of TestSuiteBuilder.hBastiaan Bakker2001-05-062-21/+0
| | | | Removed RTTI dependent stuff from TestSuite and TestSuiteBuilder.
* Merge of CppUnitW 1.2 phase 2.Bastiaan Bakker2001-05-052-9/+22
|
* TypeInfoHelper should not have been removed.Bastiaan Bakker2001-04-291-0/+9
|
* Merged Baptiste Lepilleurs CppUnitW 1.2.Bastiaan Bakker2001-04-298-77/+249
| | | | | | | | 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.
* Moved files in subdir cppunit to src/cppunit.Bastiaan Bakker2001-04-2811-0/+888