Unity Unit Testing of Hardware (with CMock)

plajjd
Posts: 54
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.

alejo9118
Posts: 2
Joined: Sun Oct 20, 2019 6:24 pm

Re: Unity Unit Testing of Hardware (with CMock)

Postby alejo9118 » Sun Oct 20, 2019 6:27 pm

Hi.
Here is a simple example that can be useful for what you want.
https://gitlab.com/deltalejo/esp32-unity-fff-demo

Who is online

Users browsing this forum: Corand and 91 guests