platformio / platformio/platformio-core

cli: `pio run --list-targets` should show `envdump`, `exec`, `test` [and others?]

Open
#4,477 2 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

build system feature
Dominant language
Python
Stars
9.5k
Forks
905
Avg merge
2d 13h
Merged PRs (30d)
2

Description

Configuration

Operating system: MacOS 12.6.1

PlatformIO Version (platformio --version): 6.1.5

Description of problem

When I type pio run --list-targets I don't see the test target. I guess it should be listed, as it actually exists [?].

Actual Results
✗ pio run --list-targets
Environment    Group     Name         Title                        Description
-------------  --------  -----------  ---------------------------  ----------------------
nodemcuv2      Platform  buildfs      Build Filesystem Image
nodemcuv2      Platform  erase        Erase Flash
nodemcuv2      Platform  size         Program Size                 Calculate program size
nodemcuv2      Platform  upload       Upload
nodemcuv2      Platform  uploadfs     Upload Filesystem Image
nodemcuv2      Platform  uploadfsota  Upload Filesystem Image OTA
Expected Results

Same as above, but also test target listed.

Additional info

I don't know how I know about the test target. Maybe I just experimented, maybe I read about it somewhere in the docs. Anyway, pio run --target test does work, so it is a target, so my intuition is that it should be listed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the pio run --list-targets CLI entry point and reproduce the output shown in the issue, then compare it with the targets accepted by pio run --target, including test. Done when the listing includes the expected runnable targets and the relevant CLI tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.