Introducing Mock framework for Unit Test ina modeling environment

University essay from Programvara och system; Tekniska högskolan

Author: Joakim Braaf; [2014]

Keywords: Mock; C ; Unit test; Software testing;

Abstract: Testing is an important part in the software development process. Unit testsaim to test individual units in isolation. These units may have dependenciesto their surroundings that make the units hard to test in isolation withoutalso testing the surrounding units. A technique to help isolate these units isto replace the surrounding units with mock objects. This work investigateshow a C++ mock framework can be integrated into a modeling environ-ment’s unit test framework. Several mock frameworks are evaluated, and aproof of concept is created to show that integration is possible. Additionally,ideas for how to use mocks in a model environment are presented.

  AT THIS PAGE YOU CAN DOWNLOAD THE WHOLE ESSAY. (follow the link to the next page)