Unit Testing framework for Embedded platform in C++?

1.2k Views Asked by At

I am working on an embedded systems project using ACE Framework and all the development is done using eclipse IDE. I am looking for a good testing framework. Basically the project involves parsing of incoming data and I am searching for a unit testing framework which suits my project. What are my options here?

3

There are 3 best solutions below

3
PrasadGandhi On

Try ceedling: It is UT framework from throw the switch, from http://www.throwtheswitch.org/ceedling

4
Krzysiek Karbowiak On

I recommend you try out Catch or doctest, which are quite similar.

0
Eyal Gerber On

I recommend using this light-weight unit testing framework designed for embedded software use with C++ that I created: https://github.com/Novodes/SimpleTest-EmbeddedSafety/

It was tested with ARM Compiler version 6.6.4 and 6.6. There are just two files: simpletest.cpp and simpletest.h

This is based on the SimpleTest repository I forked and adapted for embedded software. It is super easy to use and integrate into your code.