I’m currently setting up remote tests for our build pipeline. I’ve installed pio
and got it logged in on my remote machine, but I currently have it turned off and the device unplugged.
On my development machine, if I run pio remote test
, I’ve noticed that the project builds and apparently the tests are passing. Where are these tests being ran? I do not have any devices currently plugged into any computer.
The device list correctly shows no devices present:
$ pio remote device list
Could not find active agents. Please start it before on a remote machine using `pio remote agent start` command.
See http://docs.platformio.org/page/plus/pio-remote.html
I’m currently using the esp32-s3-devkitc-1 for these tests using espressif32@5.3.0. Here’s the relevant section in my platformio.ini:
[env]
monitor_raw = yes
monitor_speed = 115200
test_build_src = yes # ensures ./src is built when tests are ran
extra_scripts =
pre:scripts/add_unit_test_define.py
pre:scripts/add_git_version.py
# additional build flags:
# * -Wall, -Werror for additional warnings and to treat warns as errors
# * -Wno-nonnull-compare prevent errors when using NONNULL_ATTR and comparing to NULL
# * -Wno-type-limits for a bug in Nimble
build_flags = -Wall -Werror -Wno-nonnull-compare -Wno-type-limits -DCOMPONENT_EMBED_FILES=web/build/root.html:web/public/favicon.ico
[env:esp32-s3-devkitc-1]
platform = espressif32@5.3.0
framework = espidf
board = esp32-s3-devkitc-1
board_build.flash_mode = dio
test_framework = unity
lib_deps = throwtheswitch/Unity@^2.5.2