Unable to override managed component with mock (IDFGH-9210) #10599
Labels
Awaiting Response
awaiting a response from the author
Resolution: Done
Issue is done internally
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
v5.0
Operating System used.
Linux
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
What is the expected behavior?
I am trying to build a linux based
host_test
project to unit test a component. This component has a dependency onespressif/esp-idf-cxx
. I am unable to override the dependency so that the build uses the mock. I'm not sure if I have implemented it correctly, the documentation for host testing, mocking and component manager are a bit lacking.What is the actual behavior?
It errors when adding the mock via any one of component manager, extra components dir, components dir.
Steps to reproduce.
Build or installation Logs.
No response
More Information.
This may have something to do with the espressif version being namespaced? If that's the case, is there a workaround?
According to the docs, I would have expected to be able to override https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/build-system.html#multiple-components-with-the-same-name
The text was updated successfully, but these errors were encountered: