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

demandé il y a 3 ans395 vues
1 réponse
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
répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions