summaryrefslogtreecommitdiff
path: root/include/cppunit
Commit message (Collapse)AuthorAgeFilesLines
* remove also all references to mfcMarkus Mohrhard2017-04-134-103/+1
|
* remove BeOS special supportMarkus Mohrhard2017-04-131-7/+0
|
* remove the qt test runner that depends on ancient qtMarkus Mohrhard2017-04-135-124/+1
|
* implement parameterized testsMarkus Mohrhard2016-12-163-0/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | This allows to execute the same test with different parameters and treats each execution as an own test. The change consists of two parts, the TestCaller can now handle any callable which also makes it easy to generate programatically more complex test cases as well as the new CPPUNIT_TEST_PARAMETERIZED macro. That macro takes the test name as well as an iteratable, e.g. std::initializer_list. An example for this usage is: class SimpleTest : public CppUnit::TestFixture { public: CPPUNIT_TEST_SUITE(SimpleTest); CPPUNIT_TEST_PARAMETERIZED(test, {1, 2, 3, 4}); CPPUNIT_TEST_SUITE_END(); void test(int i) { CPPUNIT_ASSERT(i < 5); } }; which will execute test 4 times with the values 1 to 4.
* use std::function for the test method in TestCallerMarkus Mohrhard2016-12-161-5/+15
| | | | This allows us to pass in any callable e.g. results of std::bind.
* extract the code to turn a variable into a stringMarkus Mohrhard2016-12-163-30/+49
|
* error: blank line following trailing backslashDavid Tardon2016-12-161-1/+1
|
* tdf#104498 CPPUNIT_USE_TYPEINFO_NAME is a flagDavid Tardon2016-12-163-4/+4
| | | | ... so check just for existence.
* we no longer need a wrapper for the smart pointer caseMarkus Mohrhard2016-12-152-7/+0
|
* simpler implementation for the enum class work aroundMarkus Mohrhard2016-12-141-18/+14
|
* add support for enum class to the asserterMarkus Mohrhard2016-12-131-13/+32
| | | | | | The asserter now has special handling to convert the enum class to a std::string. This does not work without some template magic as enum class has no implicit conversion to int.
* remove support for old broken C++ compilersMarkus Mohrhard2016-12-1123-215/+36
|
* always use std::unique_ptrMarkus Mohrhard2016-10-151-4/+0
|
* replace with std::unique_ptrMarkus Mohrhard2016-10-151-12/+3
|
* HelperMacros: fix deprecated NULL macro usageGARCIN David2016-10-151-2/+2
| | | | | | | | | | | | | | | | | | | Using gcc (currently using gcc 5.2) flag -Wzero-as-null-pointer-constant triggers warnings: [...]include/cppunit/extensions/HelperMacros.h:171:31: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant] CppUnitExDeleter() : suite (0) {} \ ^ [...]include/cppunit/extensions/HelperMacros.h:174:45: error: zero as null pointer constant [-Werror=zero-as-null-pointer-constant] CPPUNIT_NS::TestSuite *tmp = suite; suite = NULL; return tmp; \ ^ Using nullptr is the c++11 way to initialize pointers with null value [1]. [1] http://en.cppreference.com/w/cpp/language/nullptr
* we always require RTTI nowMarkus Mohrhard2016-10-156-68/+2
| | | | | RTTI is supported by any decent compiler and with the mandatory c++11 support we are no longer supporting older compilers anyway.
* fix --disable-optional-features buildMarkus Mohrhard2015-11-081-0/+4
| | | | Use std::auto_ptr in C++03 mode.
* add a flag for adding optional featuresMarkus Mohrhard2015-11-072-1/+8
| | | | | | These features will switch the used C++ version from C++03 to C++11. We are also going to use std::unique_ptr instead of std::auto_ptr for the c++11 mode.
* next version is 1.14.0Markus Mohrhard2015-11-071-1/+1
|
* remove commented out codeMarkus Mohrhard2015-08-181-8/+1
| | | | | The code has been commented out for a long time and is not related to a missing fix.
* add new assertion macros for <, <=, > and >=Markus Mohrhard2014-07-132-3/+314
| | | | | | | | | Now we support the following new macros: - CPPUNIT_ASSERT_LESS - CPPUNIT_ASSERT_GREATER - CPPUNIT_ASSERT_LESSEQUAL - CPPUNIT_ASSERT_GREATEREQUAL
* mark the fails as no-returnCaolán McNamara2014-07-061-3/+10
| | | | | that might help clang scan-build understand that execution won't continue after they fail
* -Werror,-Woverloaded-virtualStephan Bergmann2013-08-161-0/+2
| | | | | | | "'CppUnit::TextTestResult::addFailure' hides overloaded virtual function; ../../include/cppunit/TestResult.h:85:16: note: hidden overloaded virtual function 'CppUnit::TestResult::addFailure' declared here: different number of parameters (2 vs 1)." (Clang)
* Bug # 51154: cppunit warning cleaningTobias Lippert2013-08-155-6/+20
| | | | | | | | | | | | This patch allows to compile the code with gcc's -Weffc++ It consists mostly of making copy constructors and assignment operators explicit and private, and of initializing all members in initializer lists. Change-Id: I6f1cae812c58e3791c2386a1288501cf2f559610 Reviewed-on: https://gerrit.libreoffice.org/5424 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
* Merge branch 'master' into feature/buildsystem_rewriteTomas Chvatal2012-08-063-8/+25
|\ | | | | | | | | | | | | | | | | Conflicts: .gitignore autogen.sh configure.in doc/Makefile.am examples/cppunittest/TestAssertTest.cpp
| * calm gcc paranoia about uninitialized stateMichael Meeks2012-06-271-0/+1
| |
| * avoid the need to work around auto_ptr warnings by dropping thatMichael Meeks2012-06-271-4/+13
| |
| * TestDecorator assumes ownership and is not allowed to create copiesMarkus Mohrhard2012-06-161-1/+8
| |
| * correct documentation, sf#2185407Markus Mohrhard2012-06-131-1/+1
| |
| * correct documentation, sf#2186611Markus Mohrhard2012-06-131-2/+2
| | | | | | | | std::vector::at() throws std::out_of_range and not std::invalid_argument
* | Automake cleanup, install and generate changelogTomas Chvatal2012-04-254-5/+5
| |
* | Add new autoconf using the latest macrosTomas Chvatal2012-04-251-1/+1
|/ | | | | | | | | This add new macros from autoconf-archive instead of the old broken ones. Also cleans up the configure.in and moves it to configure.ac. This setup as-is is not working. Next step is checking config.h to contain same contend for before/after update.
* GCC -Werror=sign-promoStephan Bergmann2012-02-141-0/+15
|
* Improve previous warnings patchStephan Bergmann2012-02-011-1/+1
|
* Fix for Solaris "finite" in ieeefp.h instead of math.hStephan Bergmann2012-02-011-0/+5
| | | | See <https://sourceforge.net/tracker/?func=detail&aid=2912590&group_id=11795&atid=311795>.
* Portability.h contains #define CPPUNIT_VERSION "1.12.0", sf#2983798Markus Mohrhard2012-01-271-1/+1
|
* upstream libreoffice patch related to rhbz#641350Markus Mohrhard2012-01-271-0/+2
| | | | impl. destructor of Cppunit::Message causes segfault when test
* upstream libreoffice warnings patchMarkus Mohrhard2012-01-271-4/+2
|
* Include/cppunit/portability/config-msvc6.Baptiste Lepilleur2009-11-242-1/+10
| | | | | | | include/cppunit/portability/config-msvc6.h: * include/cppunit/portability/Portability.h: Added macro CPPUNIT_UNIQUE_COUNTER on MSVS 7.0+ using __COUNTER__ to fix bug #2031696.
* Include/cppunit/plugin/TestPlugIn.Baptiste Lepilleur2009-11-242-1/+10
| | | | | include/cppunit/plugin/TestPlugIn.h: * include/cppunit/plugin/TestPlugInDefaultImpl.h: added missing dllexport for CppUnitTestPlugIn.
* Changes to suppress warnings of gcc -Wall -W -ansi, mainly from patch [1898225].Steve M. Robbins2008-02-211-1/+1
|
* Make floatingPointIsFinite() return int. Fix comment about comparisons and ↵Steve M. Robbins2007-03-051-5/+8
| | | | IEEE NaN.
* Portability/FloatingPoint.h must include Portability.hSteve M. Robbins2007-02-251-0/+1
|
* Src/cppunit/TestAssert.Baptiste Lepilleur2007-02-245-5/+75
| | | | | | | | | | | | | | | | | | | src/cppunit/TestAssert.cpp (assertDoubleEquals): Moved finite & NaN tests to include/cppunit/portability/FloatingPoint.h. Changed implementation assertDoubleEquals to explicitly test for NaN in case of non-finite values to force equality failure in the presence of NaN. Previous implementation failed on Microsoft Visual Studio 6 (on this platform: NaN == NaN). * examples/cppunittest/TestAssertTest.cpp: Add more unit tests to test the portable floating-point primitive. Added missing include <limits>. * include/cppunit/portability/Makefile.am: * include/cppunit/portability/FloatingPoint.h: Added file. Extracted isfinite() from TestAssert.cpp. * include/cppunit/config-evc4: * include/cppunit/config-msvc6: Added support for _finite().
* Ensure virtual class has virtual destructor.Steve M. Robbins2007-01-123-0/+6
|
* - fixed some compilation issues for QtTestRunner.Baptiste Lepilleur2006-10-262-1/+2
|
* - bumped version to 1.12.0cppunit-1.12.0Baptiste Lepilleur2006-06-291-1/+1
|
* - fixed doc typos.Baptiste Lepilleur2006-06-291-1/+1
|
* Include/cppunit/ui/text/TextTestRunner.Baptiste Lepilleur2006-06-291-0/+4
| | | | | | include/cppunit/ui/text/TextTestRunner.h * src/cppunit/TextTestRunner.cpp: applied patch #1210013 to remove hidden virtual function warning.
* removed compilation warningBaptiste Lepilleur2006-02-041-9/+9
|