Showing results for 
Search instead for 
Did you mean: 

Adding google test units to my program

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?


Pavel A.
Evangelist III

Here you can find some ideas about unit testing for embedded: