When running unit tests via PIO Remote for the Teensy framework, the unit tests are all built, and then uploaded to the remote device. Unfortunately, this results in only the last-compiled test actually running on the device.
Here’s an example: only test_state_field_registry
actually runs on the device.
Build command:
platformio remote --agent PANTeensyFarm test -e teensy -v
Build environment:
platform = teensy
board = teensy35
framework = arduino
build_flags =
-std=c++14
-Werror
-Wall
-D UNITY_INCLUDE_DOUBLE
-fexceptions
test_build_project_src = true
src_filter = +<*>
test_filter = *
upload_protocol = teensy-cli