I’m trying to setup unit tests for arduino - but I’m failing at the first step - can anyone give me any pointers as to what I’ve done wrong?
I’ve created an empty test under the native platform, but when I add the library for arduinofake, it always generates an error saying
.pio\libdeps\native\ArduinoFake\src/ArduinoFake.h:7:15: fatal error: map: No such file or directory
#include
It’s obviously finding the arduinofake files, so I can only assume I’m missing something else
My platformio.ini has the following entry
[env:native]
platform = native
lib_deps = ArduinoFake
And my test code only has the following
#include <Arduino.h>
#include <unity.h>
using namespace fakeit;
void setUp(void)
{
ArduinoFakeReset();
}
int main(int argc, char **argv)
{
UNITY_BEGIN();
return UNITY_END();
}
Any help appreciated