Can't include unity.h for unit testing with aws freertos

0

Hi,
I would like to set up unit testing in my project. I had an issue with including unity.h as it was not detected. I recently found that unit test folders for AWS components always have a unity folder in them. Would it be possible to make unity.h as a component that can be included in projects or is the only way to also include a unity folder in my project ?

Thank You

已提问 3 年前402 查看次数
1 回答
0

Hi,
Unity is part of cmock and is included as submodule in: https://github.com/aws/aws-iot-device-sdk-embedded-C/tree/main/libraries/3rdparty.
in amazon-freertos it is included in https://github.com/aws/amazon-freertos/tree/master/libraries/3rdparty
To have it checked out, You will have to clone with submodules (git clone <repository> --recurse-submodules )or just type git submodule init && git submodule update to checkout cmock and unity in an already cloned repository.

AWS
已回答 3 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则