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_DRTEST
macro 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_library2
function for list-based mock object code creation -
Update documentation for public
drmock::
classes -
Replace
MethodCollection
withController
, a composition of a vector ofMethod
objects and aStateObject
-
Clean up
Controller
/MethodCollection
error logging -
Remove
QObject
dependency fromSignal
-
Remove need for
DRMOCK_USE_QT
macro -
Remove Qt includes from
Method.h
-
Add
Variant
class to revert interface change ofexpects
andtransition
which made using initializer-lists impossible
DrMock 0.5.0
Added/Changed
-
Add
xfail
andskil
tags todrtest
-
Add floating point comparison macro
DRTEST_ASSERT_ALMOST_EQUAL
to
drtest
-
Add complex behaviors to
drmock
-
Add convenience function
addColumns
-
Add convenience functions
template<typename... Deriveds> expect
andtemplate<typename... Deriveds>
-
Change polymorphism behavior (
polymorphic
only applies toexpect
andtransition
calls followingpolymorphic
) -
Remove
setIsEqual
fromAbstractBehavior
Fixed
DrMock 0.4.2
DrMock 0.4.1
DrMock v0.4.0
Added/Changed
- Add
DRTEST_ASSERT_DEATH
macro for death testing
DrMock v0.3.0
Added/Changed
-
Add
emits
method that allowsMethod
objects 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
--qt
flag for theDrMockGenerator
, which, when set,
#define
s the DRMOCK_USE_QT macro in all mock source code. The
DrMock macros automatically apply--qt
if a test is linked
against a Qt library. IfDRMOCK_USE_QT
is not set, calling
Signal::emit
raises 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_DUMMY
macros- Change order of includes in mock objects (so that
DRMOCK
is defined when including the interface header in mock object header)
- Change order of includes in mock objects (so that
-
Allow applying
DRTEST_VERIFY_MOCK
to mock object (not just method objects)-
Add
makeFormattedErrorString
virtual method toIMethod
interface -
Add
makeFormattedErrorString
method toMethodCollection
(concatenates formatted error strings of collected method objects) -
Add
makeFormattedErrorString
method to mock objects (returns formatted error string of method collection)
-
-
Use
RESOURCES
parameter inDrMockTest
to 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_PATH
must be set when usingDrMockModule
with 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.7
andpip3.7
withpython
andpip
and shifting the responsibility of managing the python versions to the user. -
Replace odd error message thrown when using
DrMockModule
withQTMODULE
parameter but unsetDRMOCK_QT_PATH
environment variable. -
Throw error message if
DrMockTest
can't find files specified inTESTS
.
DrMock 0.1.0
Official open-source release