Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mocking: Add "out-of-the-box" working example of FreeRTOS and other components (IDFGH-14274) #15067

Open
Fo-Zi opened this issue Dec 20, 2024 · 1 comment
Assignees
Labels
Status: Opened Issue is new Type: Feature Request Feature request for IDF

Comments

@Fo-Zi
Copy link

Fo-Zi commented Dec 20, 2024

Is your feature request related to a problem?

The "problem" I see is that while mocking seems to be integrated (At least for some components) on esp-idf, I haven't been able to find a working example on how to use these mocking capabilities. I have read the documentation, on both esp-idf and CMock, the problem is how to go from that, to include tests that rely on mocking to an existent project. Esp-idf uses CMake, but not in the "traditional" way I have seen in other projects, so how to do this doesn't seem trivial.

Describe the solution you'd like.

I'd like to see a working project example, like many on the examples folder of esp-idf and were of GREAT HELP. But defining tests that use mocking. FreeRTOS mocking alone would be a huge added value, since you can test through software alone task interaction logic for complex applications.

Describe alternatives you've considered.

Since I have been unable to integrate mocking natively, I have been considering on using Ceedling as a nested isolated project, and doing the mocking myself. But I am not so familiar with Ceedling so I'd need more time to achieve this.

Additional context.

No response

@Fo-Zi Fo-Zi added the Type: Feature Request Feature request for IDF label Dec 20, 2024
@Fo-Zi Fo-Zi changed the title Add "out-of-the-box" working example of FreeRTOS and other components Mocking Mocking: Add "out-of-the-box" working example of FreeRTOS and other components Dec 20, 2024
@github-actions github-actions bot changed the title Mocking: Add "out-of-the-box" working example of FreeRTOS and other components Mocking: Add "out-of-the-box" working example of FreeRTOS and other components (IDFGH-14274) Dec 20, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 20, 2024
@ESP-Marius
Copy link
Collaborator

Hi, did you take a look at this part of the docs?

At the end it also links to some examples, including esp-event tests which uses mocks for the freertos calls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Feature Request Feature request for IDF
Projects
None yet
Development

No branches or pull requests

3 participants