For the GRBL_ESP32 project, I wanted to add unit testing a few months back. So, I dug into the documentation of pio and found
pio test. The source and platformio can be found here: GitHub - bdring/Grbl_Esp32 at YamlSettings .Because of compatibility with Arduino IDE and for some other reasons, I made the following config:
[platformio] src_dir = Grbl_Esp32 lib_dir = libraries test_dir = Grbl_Esp32/test ... [env:test] build_type = debug test_build_project_src = true
From what I understand from Unit Testing — PlatformIO latest documentation this should just compile the src tree along with the tests (PS: some docs say I should use ‘true’, others say ‘yes’, but the result is the same). And at the time, it just worked great.
Now, it was time to dust it off, because we are working on a major change. And to my surprise, it doesn’t work anymore. After inspection (-v), it turns out that that ‘src’ folder is no longer built, which means it won’t link, and… everything turns red… I just can’t figure out why.
How can I fix this?