Skip to main content
Associate
June 1, 2024
Question

Adding google test units to my program

  • June 1, 2024
  • 1 reply
  • 1390 views

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?

 

    This topic has been closed for replies.

    1 reply

    Pavel A.
    June 2, 2024

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