2024-06-01 04:16 PM
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?
2024-06-01 06:44 PM
Here you can find some ideas about unit testing for embedded: https://www.beningo.com/category/testing/