waterloo-rocketry / cansw_processor_canards

Firmware for Canards
0 stars 0 forks source link

How to do unit testing #3

Open celery6 opened 1 week ago

celery6 commented 1 week ago

How??? Should pick an existing framework, make sure it's easy for devs to pick up smoothly. And integrate into existing dev environment (stm32 world)

I have no practical experience in this.

Joe-Joe-Joe-Joe commented 1 week ago

disclaimer: I know absolutely nothing about using frameworks intended for C++ for C development. I do not remember if cubeIDE natively compiles everything with g++ regardless. If it does maybe you don't need to worry about compatibility so much.

Anyway this one looks good: https://github.com/doctest/doctest Any of the ones you get with a google search are probably good enough as a first step. Main thing is to pick one and run with it. (And not use Zephyr lol)