How to unit test FreeRTOS code?

hinashri wrote on Wednesday, September 04, 2019:

I would like to know if FreeRTOS code is unit tested or not? What is the unit testing framework used ? Could you suggest a framework that is best suited for unit testing FreeRTOS code?

rtel wrote on Wednesday, September 04, 2019:

There is a little information on testing here:
https://www.freertos.org/FreeRTOS-Coding-Standard-and-Style-Guide.html#Testing
although I note that doesn’t say that the tests are withing ‘standard
demo’ tasks and that the Windows Simulator project is predominantly used
for testing as it enables all the demos to run at once while
simultaneously measuring their coverage.

What is it you wish to test? The common code or a new port layer?
Testing port layers is a bit more involved if they include interrupt
nesting.

hinashri wrote on Wednesday, September 04, 2019:

Thanks Richard for a prompt response.
For now we are looking into testing just common code, but may eventually need to test the port layer too.