You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you receive an fakeit::UnexpectedMethodCallException exception while running unit tests with mocking using ArduinoFake/FakeIt. It may not be clear which method call has triggered the exception.
To do so, debugging can be helpful:
Build the test using platformio test --without-testing --environment ...
In VS-Code start the debugger "PIO Debug (skip Pre-Debug)"
Add a function breakpoint for abort
Run the debugger
In case of an exception analyse the call stack to find the method which has not been properly mocked
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
In case you receive an
fakeit::UnexpectedMethodCallExceptionexception while running unit tests with mocking using ArduinoFake/FakeIt. It may not be clear which method call has triggered the exception.To do so, debugging can be helpful:
platformio test --without-testing --environment ...abortAll reactions