Testing is an important part in the software development process. Unit tests aim to test individual units in isolation. These units may have dependencies to their surroundings that make the units hard to test in isolation without also testing the surrounding units.
A technique to help isolate these units is to replace the surrounding units with mock objects. This work investigate show a C++ mock framework can be integrated into a modeling environment’s unit test framework. Several mock frameworks are evaluated, and a proof of concept is created to show that integration is possible. Additionally,ideas for how to use mocks in a model environment are presented.
Source: Linköping University
Author: Braaf, Joakim