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

Running mocks on device #53

Open
nstansbury opened this issue Sep 22, 2023 · 2 comments
Open

Running mocks on device #53

nstansbury opened this issue Sep 22, 2023 · 2 comments
Labels

Comments

@nstansbury
Copy link

nstansbury commented Sep 22, 2023

Is it possible to use the FakeIt impl. built by ArduinoFake to run mocks on the device? Otherwise it seems you need to install and build FakeIt separately to get on device mocks. Either that or a way to prevent ArduinoFake reimplementing <Arduino.h>

@nstansbury nstansbury changed the title Running mocks on device with FakeIt Running mocks on device Sep 22, 2023
@FabioBatSilva
Copy link
Owner

You trying to run the tests with ArduinoFake on a dev board ?
This is mean to run on native platform (your desktop or ci)

@nstansbury
Copy link
Author

Yes, I want to Spy on some class function calls when running tests on the actual device, and am trying to avoid having to build and configure FakeIt directly, as all that hardwork is already done by ArduinoFake.

I think the only solution I have found so far is to add ArduinoFake into my [env:pico] and then disable lib-compat-mode to force PlatformIO to include it when building for the device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants