All Questions
3 questions
1
vote
1
answer
86
views
How to make the initialization of the mocks more readable?
In an Arduino project, I'm using some code which is a slightly modified version of a public library. I made several modifications to it:
I performed some minor changes I needed to make the code work.
...
5
votes
0
answers
167
views
Using an extra mock simply to take advantage of the behaviour observation tooling
I'm writing integration for a project, but our framework doesn't provide any ability to inject dependencies, so I've written tests with a unit testing framework (GTest) and used a mock (GMock) in an ...
1
vote
1
answer
264
views
Prepare a cross-platform QT C-wrapper class for unit testing and mocking
The situation
I recently started a cross platform QT project (arm, linux-x86, windows) that
aims to interact with CAN-Bus hardware. I want to learn and get used to unit testing from scratch as good ...