New class RandomStub creates random numbers based on std::rand() within a given range.
Better support for pkg-config (thanks to a contribution)
- new constraint TriggeredOutbound together with TriggerStub
and ReturnAndTriggerStub provide the use of outbound values
based on another incoming method parameter
- some fixes to ministl due to warnings with g++ 4.x
- cleanup documentation (api + handbook)
This release introduces a set of template classes to replace the macros needed so far to create and influence mock objects. The basic working method does not change but it should be easier now to work with mockpp.
A new section in the handbook about optimizing production code for testing purposes has been started. There is also a sample implementation on how to handle time dependencies.
Broken configuration files for non-autoconf platforms have been fixed.
The readability of error messages has been improved.
Besides some minor enhancements and fixes there are now project files for msvc71. Compilation under cygwin now works for both the ascii and unicode version.
Added missing File MixedMockObject.h to the distribution.
- MixedMockObject combines enhanced mock objects
- scope fixes for g++ 3.4.3
- fixes for g++ 2.95.3 and OpenBsd3.1
- fixed non-working class IsInstanceOf
The possibility to pass constraint objects to VisitableMockObjects relaxes its strict working method. There is a new class ConstraintList and some other minor enhancements.
- mock objects reset all their sub objects
- all mock objects get their own reset() method
- ReturnObjectList has an optional default return value
New TrackingCounter classes have been added to track occurrences.
All known bugs and issues preventing a final release have been fixed. The documentation has been overworked.
The handling of setExpected()/setExpectNothing() was modified: setExpected() now revokes setExpectNothing(). Some bugs in methods related to this have been fixed.
Several minor issues have been fixed and the documentation has been extended. There is now a tutorial available for download as well as online at http://mockpp.sf.net/tutorial .
There is a new mock object approach ported from jMock. This new way provides higher flexibilty when generating mock objects. The macros have been extended and now they should cover all types of methods and their parameters. The handbook has been extended.
Currently there is a port of jMock in the works. This will offer another MockObject approach which removes several limitations with the current implementation.
Download from cvs if you are interested.
See http://jmock.org/getting-started.html for an introduction into the java original.
Added an extended set of macros which allow the use of "const" and references in mock method parameters.
Unicode support for msvc and some minor bug fixes regarding string formatting with %-placeholders.
Version 1.1.10 of mockpp support the follwoing platforms:
From my personal experience mockpp is now running on
- Linux (SuSE 8.2) + gcc 3.3
- OpenBsd 3.1 + gcc 2.95.3
- Windows (ME, NT) + Borland CBuilder 5
From reports I know that the following combination work fine, too:
- Windows + MSVC6 / MSVC7
The following combination had problems but I expect it to work now:
- HP-UX 11 + g++ 3.2
This release fixes a bug and some minor problems. It also includes a port to OpenBSD and gcc 2.95.3.
This bug fix release closes a memory leak and should now compile and run on Windoze under BCB5.
mockpp is a platform independent generic unit testing framework for C++. It's
goal is to facilitate developing unit tests in the spirit of
Mock Objects (http://www.mockobjects.com) and EasyMock
(http://www.easymock.org).
Mockpp has no own testing framework. So CppUnit (http://cppunit.sf.net) is
recommended.
The main development platform of mockpp is Linux. But it is intended to be
platform independent and a port to Borland BCB is already in work. ... read more
Hopefully the last beta/preview before the final and complete release.
Some bug fixes and the new VisitableMockObject which works almost
completely. Docs are still incomplete. Only autoconf platforms are known
to compile currently.