PlatformIO Community

Testing over OTA

Hello,

I have the following setup:

  • an embedded test that on Setup establishes a WifiConnection and OTA handling
  • some tests
  • one esp8266
  • one pio agent

What I want:
To trigger tests with the PIO Test Client over OTA and get the results.
Platformio setup:
[env:embedded-test]
platform = https://github.com/platformio/platform-espressif8266.git#feature/stage
board = nodemcuv2
framework = arduino
test_filter = embedded
upload_protocol = espota
upload_port = my_ip

When I run the tests the message is that i need to specify test_port, but I couldn’t find any viablie solution.

Did anyone tried something like this?

Good use case. Currently, PIO Unified Debugger uses PySerial for communication with a target device. Could you try this hook, setting test_port to https://pythonhosted.org/pyserial/url_handlers.html#socket ?