CppUTest is a C/C++ based unit xUnit test framework for unit testing and test-driving code.
CppUTest is a C /C++ based unit xUnit test framework for unit testing and for test-driving your code. It is written in C++ but is used in C and C++ projects and frequently used in embedded systems but it works for any C/C++ project.
CppUTest’s core design principles are:
- Simple in design and simple in use.
- Portable to old and new platforms.
- Build with Test-driven Development in mind
CppUTest has support for building mocks. This document described the mocking support. 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.
Official Website: http://cpputest.github.io/
Useful Links: