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年前293ビュー
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ