cancel
Showing results for 
Search instead for 
Did you mean: 

Adding google test units to my program

Jordalic
Associate II

Hi, I'm looking for a way to test my cpp module using google tests. It uses a RNG, CRC, and UART, and i want to add unit tests and mock tests for this module. I followed several guides but with no luck so far. I cloned google testing repository and compiled it to produce gtest and gmock libraries. than in stm I included this libraries in the build configuration, also included header files, but when building it, I get thousands of errors for some reason. I literally spent entire day doing it. Is this even possible? How do you do that?

 

1 REPLY 1
Pavel A.
Evangelist III

Here you can find some ideas about unit testing for embedded: https://www.beningo.com/category/testing/