2 replies
March 2021

shebu18

Interesting article and well written.

is there a video you would recommend for starting with unit testing C? I find that doing unit testing in embedded is hard if the code/decisions depend on the HW the code is running on.

Regards, CG.

April 2021

ncmiller

@shebu18 - Not a video, but this book is surprisingly easy to read and is probably the best resource on the topic: Test Driven Development for Embedded C (Pragmatic Programmers): Grenning, James W.: 9781934356623: Amazon.com: Books.

The book goes into great detail about how to test in the presence of HW dependencies using mocks and fakes.