Download Embedded Unit Testing Framework

Transcript
Problem Description
The aim of this project is to make it easy to do thorough unit testing of C/C++ code written for the EFM32 microcontrollers, by creating a testing framework. The core problem
is that the embedded code interacts with a number of peripherals on the microcontroller,
which are not available when running the tests. Thus, it is essential to create mock objects
or stub functions for all EFM32 modules, which allows the test instrumentation code to
control exactly which response is given to the code-under-test (CUT), and also to capture
the messages sent by the CUT in order to compare it with the expected behavior.
The project will see if unit testing can reduce the number of errors before release of
software, and that the work-hours used on testing can be reduced. Show that Unity and
CMock is suitable as a framework for unit testing embedded software. The project will
also look at problems and barriers that prevent developers from using unit testing during
development of embedded software.