Is it possible to mock the C open() function using CppUTest ? #include "CppUTest/CommandLineTestRunner.h" #include "CppUTest/TestHarness.h" #include ...
Is it possible to mock the C open() function using CppUTest ? #include "CppUTest/CommandLineTestRunner.h" #include "CppUTest/TestHarness.h" #include ...
I'm working in a project targeting a Silicon Labs microcontroller. I want to create a wrapper for the Bluetooth SDK calls. SDK libraries are heavy on ...
We use CppUTest to run unit tests. This is being performed by Cmake/Ninja where after building the tests, we use ninja to execute them ninja test an ...
CppUTest documentations says MockSupportPlugin makes the work with mocks easier. It does the following work for you automatically: checkExp ...
I want to include cpputest in my project's source tree as a git submodule, but I am not terribly familiar with autotools. I have been looking at this ...
I'm trying to compile cpputest with mingw-w64 but can't make it work and I can't find any resources on how to do that. So hopefully this question will ...
I am using yaml-cpp library (v 0.6.0) to parse yaml configuration file. Yaml-cpp is installed as system library. I have made a class Parser which che ...
I want to test my C++ code for memory leaks with Valgrind (memcheck) x86. But the software gets cross-compiled and is running on ARM. In order to ...
When I try to build test sources I get an error like after this. stl_tree.h:542:14: error: ‘__node’ does not name a type ::new(__node) _Rb_tree_no ...
Working on getting CPPUTest working with sample application code. I modified couple of make files to get this compiled but now I am facing linker erro ...
I'm planning to use cpputest as a testing framework in my project which I need to cross compile as it will be used on ARM platform. The compiler I'm u ...
I have an Embedded C/C++ project and I want to write unit tests for it with CppUTest. One simple test that I want to do is to ensure that a particular ...
I am attempting to remove certain directories from my lcov tracefile, but am not having any success. I am attempting to use relative paths, and I am u ...
I want to use cpputest on STM8 and installed all the required tools for it. I am able to run cpputest on my simplified code. on my main file which bel ...
I'm using Gtest to perform unit testing to a C module. One of the requirements is to verify that a function called Supervision_Log() is called after e ...
maybe there is someone who has experience with Unit Testing with cpputest. I have something like this: Source code Under Test: UNIT Test Environm ...
I'm using cpputest to perform Unit Tests of c code. In my source code under test I have a static function which I would like to be "redirected" to a ...
I'm writing an Unit Test (in cpputest) where I try to perform an "dependence injection" to a function call. This means when the Unit Test have to call ...
let's suppose I have a c source file (source file under test) with content: The I2CRead() function is constructed as follow: Now I'm trying to w ...
I have a function that implements a state machine, test_hw(), i e. First state is idle, and it has not calling any mocked function inside. But this ma ...