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년 전397회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠