Skip to content

DrMock v0.2.0

Compare
Choose a tag to compare
@maltekliemann maltekliemann released this 15 May 18:49
· 450 commits to master since this release

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)
  • Allow applying DRTEST_VERIFY_MOCK to mock object (not just method objects)

    • Add makeFormattedErrorString virtual method to IMethod interface

    • Add makeFormattedErrorString method to MethodCollection (concatenates formatted error strings of collected method objects)

    • Add makeFormattedErrorString method to mock objects (returns formatted error string of method collection)

  • Use RESOURCES parameter in DrMockTest 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 using DrMockModule 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 and pip3.7 with python and pip and shifting the responsibility of managing the python versions to the user.

  • Replace odd error message thrown when using DrMockModule with QTMODULE parameter but unset DRMOCK_QT_PATH environment variable.

  • Throw error message if DrMockTest can't find files specified in TESTS.