Unit tests in STM32CubeIDE
Currently I'm developing within the STM32CubeIDE for an STM32F373CC.
I use the main.c as entry point into a wrapper and program all of the rest in C++.
I generally try to keep any HAL code outside of simple classes that can be unit tested easily. Ideally my tests would still compile when data types and some definitions are used from the HW-related codes but I don't really need actual HW-code running within a test. I just want to test algorithms and basic classes. Any comments regarding the HAL or any other HW-related code would still be appreciated.
When adding a class to my project the IDE suggests adding a unit test:
So how exactly is this supported? The Foo_test.cpp is simply added to my project but I'm not sure how to proceed. Do I have to integrate a unit testing framework on my own? Is there a framework somehow included in the STM32CubeIDE? Is there support for test execution and visualization?
Any resources and guides are appreciated! If non of this is supported, I'd still like to know why the UI shows this nice "Unit Test" checkbox for me ; - )
A similar question was asked here but hopefully I at least get an answer to why there is a checkbox present in the UI.
