Hello HN!<p>Here is MiniMock : a minimalist, header-only, C/C++ mock library.<p>It's a side project of my current side project.<p>MiniMock is a tentative to create a mock library that is :<p>- quick and easy to integrate,<p>- quick and easy to learn,<p>- quick and easy to use.<p>In short, MiniMock offers basic mock features by providing only 9 macros :<p>- 3 macros to structure tests : BEGIN_TESTS, TEST, END_TESTS.<p>- 4 macros to compare things : EXPECT, EXPECT_MSG, ASSERT_MSG, NEAR.<p>- 2 macros to mock functions : MINI_MOCK_FUNCTION, MINI_MOCK_ON_CALL.<p>And it relies on native C++ language to do everything else.<p>The repo contains a readme and a minimal example to have an idea.<p>Currently it's a quick-and-dirty-proof-of-concept but I'm interested to know if this approach seems appealing to you.<p>Also let me know if something similar exists, I would be happy to use it instead of reinventing the wheel.<p>A little more context on why I started MiniMock :<p>- All mock frameworks that I know are full-featured, heavy and complex, they require a lot of time and energy to learn and use.<p>- However my needs for mocks are really basic, mocking a function or comparing two variables are conceptually very simple things.<p>- So I naively believe that doing a simple thing could be simple.<p>- So I started MiniMock even if (or because) I'm not a mocking-guru.<p>English is not my native language, please let me know if something isn't clear in the readme or in the discussion.<p>Thanks