How can I unit test Arduino code?

后端 未结 20 810
情深已故
情深已故 2020-12-07 06:53

I\'d like to be able to unit test my Arduino code. Ideally, I would be able to run any tests without having to upload the code to the Arduino. What tools or libraries can he

20条回答
  •  生来不讨喜
    2020-12-07 07:33

    If you want to unit-test code outside MCU (on desktop), check out libcheck: https://libcheck.github.io/check/

    I used it to test my own embedded code few times. It's pretty robust framework.

提交回复
热议问题