Skip to content

PIO Remote builds tests and then executes them all, resulting in only the last-built test executing #3270

Open
@tanishqaggarwal

Description

@tanishqaggarwal

Temporary solution

Please use -r, --force-remote option for pio remote test command.


Configuration

Operating system: MacOS X

PlatformIO Version (platformio --version): 4.1.0

Description of problem

When testing on remote platforms with Teensy, if there are many tests specified for a single environment, the remote agent builds all the tests and then runs them. Unfortunately this only results in a

See post here: https://community.platformio.org/t/pio-remote-testing-bug/10496

Steps to Reproduce

  1. Write some unit tests for the Teensy environment and have an environment run all of them
  2. Run them on a remote agent: platformio remote --agent <name> test -e <env>

Actual Results

The code for the tests is built in series, but only the test built last is actually uploaded to the device for testing. See
https://travis-ci.org/pathfinder-for-autonomous-navigation/CommonSoftware/jobs/610692665?utm_medium=notification&utm_source=github_status

Expected Results

The tests are executed one-by-one.

If problems with PlatformIO Build System:

The content of platformio.ini:

[env:teensy]
platform = teensy
board = teensy35
framework = arduino
test_build_project_src = true
src_filter = +<*>
test_filter = *
upload_protocol = teensy-cli

Workaround

Use the --force-remote option in the remote test command.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions