Closed rtu-dataframe closed 4 years ago
Hallo @Simonefardella ,
Thank you for your support.
I get an error message when I run "platformio test":
Warning! Ignore unknown configuration option 'src_filter' in section [platformio] .pio\build\esp12e\libFrameworkArduino.a(core_esp8266_main.cpp.o):(.text._ZL12loop_wrapperv+0x4): undefined reference to 'setup' .pio\build\esp12e\libFrameworkArduino.a(core_esp8266_main.cpp.o):(.text._ZL12loop_wrapperv+0x8): undefined reference to 'loop' .pio\build\esp12e\libFrameworkArduino.a(core_esp8266_main.cpp.o): In function 'loop_wrapper()': core_esp8266_main.cpp:(.text._ZL12loop_wrapperv+0x21): undefined reference to 'setup' core_esp8266_main.cpp:(.text._ZL12loop_wrapperv+0x2d): undefined reference to 'loop' collect2.exe: error: ld returned 1 exit status *** [.pio\build\esp12e\firmware.elf] Error 1
With WeatherStationDemo.cpp it worked. How can I test the code?
Ok, i've restored the original .cpp file extension, i don't know why, but it seems that platformio needs the .cpp files in order to run the unit tests.
As matter of fact, now everything works!
Thank You Simone
Hi @Zwer2k,
I've created a PR in order to these following enhancements at project level: