Releases: DrCpp/DrMock
0.6.0
-
Reorganize project structure along the lines of [vector-of-bool/pitchfork](gi thub.com/vector-of-bool/pitchfork)
-
Move utility methods that are used in
mock/andtest/toutility/ -
Remove python component from this repository (
drmock-generator, as it is now called, will be installed using pip in the future) -
Clean up tutorials, add a specification for
drmock-generator -
Remove broken (and superfluous) pkgconfig
-
Add
USING_DRTESTmacro for removingDRTEST_prefix from test macros -
Place data funcs in
DRTEST_NAMESPACE -
Clean up cmake/DrMockMacros.cmake
-
Convert all CMake functions/macros from camelCase to snake_case
-
Introduce
drmock_library2function for list-based mock object code creation -
Update documentation for public
drmock::classes -
Replace
MethodCollectionwithController, a composition of a vector ofMethodobjects and aStateObject -
Clean up
Controller/MethodCollectionerror logging -
Remove
QObjectdependency fromSignal -
Remove need for
DRMOCK_USE_QTmacro -
Remove Qt includes from
Method.h -
Add
Variantclass to revert interface change ofexpectsandtransitionwhich made using initializer-lists impossible
DrMock 0.5.0
Added/Changed
-
Add
xfailandskiltags todrtest -
Add floating point comparison macro
DRTEST_ASSERT_ALMOST_EQUALto
drtest -
Add complex behaviors to
drmock -
Add convenience function
addColumns -
Add convenience functions
template<typename... Deriveds> expect
andtemplate<typename... Deriveds> -
Change polymorphism behavior (
polymorphiconly applies toexpect
andtransitioncalls followingpolymorphic) -
Remove
setIsEqualfromAbstractBehavior
Fixed
DrMock 0.4.2
DrMock 0.4.1
DrMock v0.4.0
Added/Changed
- Add
DRTEST_ASSERT_DEATHmacro for death testing
DrMock v0.3.0
Added/Changed
-
Add
emitsmethod that allowsMethodobjects to emit signals when
called (for details, see the tutorials). Implementing this feature
meant introducing some significant changes (taken from git log):-
All major class templates now have a new template parameter,
the type of the parent mock object (MO). For every MO, the mocker passes
to each Method object of the MO a pointer to the MO. This pointer is
required forSignal::invoke(Parent*)[see below]. -
A new class template,
Signal, represents such signal emissions. -
Introduce the
--qtflag for theDrMockGenerator, which, when set,
#defines the DRMOCK_USE_QT macro in all mock source code. The
DrMock macros automatically apply--qtif a test is linked
against a Qt library. IfDRMOCK_USE_QTis not set, calling
Signal::emitraises an error. -
Update
samples/qt
-
-
Throw if conflicts occur during mock object configuration
DrMock v0.2.0
Added/Changed
-
Autodetect number of threads for compiling in Makefile
-
Add convenience Makefile for building all sample projects
-
Add tutorial for manually building DrMock
-
Add pkg-config file
-
Add
DRMOCK,DRMOCK_DUMMYmacros- Change order of includes in mock objects (so that
DRMOCKis defined when including the interface header in mock object header)
- Change order of includes in mock objects (so that
-
Allow applying
DRTEST_VERIFY_MOCKto mock object (not just method objects)-
Add
makeFormattedErrorStringvirtual method toIMethodinterface -
Add
makeFormattedErrorStringmethod toMethodCollection(concatenates formatted error strings of collected method objects) -
Add
makeFormattedErrorStringmethod to mock objects (returns formatted error string of method collection)
-
-
Use
RESOURCESparameter inDrMockTestto add resource files to test executables -
Add remark about QII pattern to docs
Removed
- Disable verbose print from DrMockGenerator
Fixed
-
Add missing remark that
DRMOCK_QT_PATHmust be set when usingDrMockModulewith Qt5 modules to documentation. -
Apply do-while-false pattern to
DRTEST_VERIFY_MOCK -
Fix formatting errors and typos in source/docs
-
Fix transition table in rocket example
-
Replace
python3.7andpip3.7withpythonandpipand shifting the responsibility of managing the python versions to the user. -
Replace odd error message thrown when using
DrMockModulewithQTMODULEparameter but unsetDRMOCK_QT_PATHenvironment variable. -
Throw error message if
DrMockTestcan't find files specified inTESTS.
DrMock 0.1.0
Official open-source release