micro-test-plus 3.2.0
µTest++, a lightweight testing framework for embedded platforms
Loading...
Searching...
No Matches
Memory footprint

The memory footprint of unit tests based on µTest++ is definitely smaller than that of traditional C++ testing framework, mainly because the iostream library is not used.

However, the use of templates for implementing the comparators and operators should be carefully observed for platforms with really limited amounts of memory, since each pair of different operands contributes to the program size.

At the limit, µTest++ can be used without custom comparators and operators (only with regular boolean expressions), and still be able to provide the basic functionality of testing various conditions, but without the optional features of displaying the actual values compared.

Note
The memory footprint on debug (built with -O0), is significantly larger than on release. If necessary, the optimization for the debug build can be increased to -Og, to save some memory.