Unity Unit Testing of Hardware (with CMock)

plajjd
Posts: 30
Joined: Thu Jul 05, 2018 11:47 pm

Unity Unit Testing of Hardware (with CMock)

Postby plajjd » Wed May 15, 2019 2:51 pm

I am using the Unity unit test framework in the IDF, and would like to provide fake data from hardware ports. (UART, SPI, GPIO, ADC, etc)

Does any one have suggestions on how to write unit tests for functions that access ESP32 hardware?

Has anyone used CMock, and have advice or opinions about it?

Thanks!

Phil.

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot], permal and 14 guests