ArduinoFake
ArduinoFake copied to clipboard
Arduino mocking made easy
Hi I am trying to add [SPI Arduino Core library ](https://github.com/arduino/ArduinoCore-avr/tree/master/libraries/SPI) and contribute in ArduinoFake for the community. I have followed the contribution guidelines and added SPI the same way...
I've faced with a strange behavior when String type is used a test contains the following ``` When(OverloadedMethod(ArduinoFake(Serial), println, size_t(const String &s))).AlwaysReturn(); String msg("test"); Serial.println(msg); Verify(OverloadedMethod(ArduinoFake(Serial), println, size_t(const String &s)).Using("test")).Once();...
I have a failing test - because I haven't mocked/faked all the Arduino bits fully. When I run the tests I get a `Failed` (correctly) reported for the test, but...
my platform.ini looks like this [env:native] platform = native build_flags = -std=gnu++11 lib_deps = ArduinoFake build_type = debug debug_init_break = tbreak setup the compiler makes an debug code is 7...
Greetings, I tried to `#include "ArduinoFake.h"` in a project tested with cpputest (both from docker & native install) and encountered this error. > compiling MyFirstTest.cpp > In file included from...
hi all, is `ArduinoFake` compatible with [AUnit](https://github.com/bxparks/AUnit)? what i would like to do is mock out `analogX()` and `digitalX()` calls. please advise. thanks in advance, rey malahay
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...
I'm starting a embedded project wich uses ESP32 microcontroller using the Arduino Framework and some modules like a Sigfox Module. I want to test a function which send messages via...
Good morning, i am wrapping my head around this. i'm on PlatformIO in VScode, using Unity as test suite. i am using Windows 10, installed minGW, test compiles and runs...
Hi, I have been struggling with this for some time. I am trying to write tests for a library that creates its own Stream child classes and I am encountering...