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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南