CppUTest Mocking Manual - CppUMock

CppUTest has support for building mocks. This document described the mocking support as was released in CppUTest 2.2. A couple of design goals for the mocking support were:

  • Same design goals as CppuTest -- limited C++ set to make it well suitable for embedded soft.
  • No code generation
  • No or very few magic hiding macros
  • Very simple to use
  • The developer stays in control

The main idea is to make manual mocking easier, rather than to make automated mocks. If manual mocking is easier, then it could also be automated in the future, but that isn't a goal by itself.