Currently, I am working with an ESP-IDF and try to get unit testing to work.
I already found https://esp-idf.readthedocs.io/en/latest/api-guides/unit-tests.html, but there is a point which I don't understand.
But first, let me explain my setup:
- I work under Windows and have a MSYS32 shell.
- My
IDF_PATH
points to ~/esp-idf, where my esp-idf suite sits. - My projects sit in ~/project_dir/subdir, however. They work as they should.
If I follow the instructions in the unit test guides, I can build the test cases which are built into the system. But it does not find the unit tests of my application. This is clear, as they sit somewhere completely else.
What am I supposed to do now? Perferrably without tampering with the default unit test app too much?
I can see several approaches, but I don't know what is the intended way to add own components resp. their test cases into the said app:
- Should I add the project paths somewhere into the unit test app?
- Should I copy the unit test app and add it to my projects?
- Should I create a folder in my project and add a link to the unit test app?