Unit test blink example fails

platform = espressif8266
board = esp12e
framework = arduino
monitor_speed = 115200
The contents of Unity.h are being recognised as if it removed then lines like “RUN_TEST(test_led_state_high);” fail. But it shows a squiggly line a you can see and fails to run.

Any ideas ? thanks.

2 | #include <unity.h>
| ^~~~~~~~~
compilation terminated.
*** [.pio\build\esp12e\src\main.cpp.o] Error 1
========================================================================================== [FAILED] Took 1.71 seconds ==========================================================================================The terminal process “C:\Users\Gel.platformio\penv\Scripts\platformio.exe ‘run’” terminated with exit code: 1.

Don’t write unit tests in src/, write them in a file in test/. The Unity framework is only auto-included when using the “Test” project task and for files in test/. Follow the unittest documentation and example closely.

Thank you for answering.

Your point is a fair one. The environment is brand new to me and feels a little disjointed and less intuative in some places than other ide’s ive been used to, but thats probably because I havent spent enough time with it yet.

I will obviously have to pay very close attention to the documentation as you suggest.

Thanks again for your help. :grin: :+1: