platformio / platformio/platformio-core
Provide standard `PIO*` and `PLATFORMIO_*` environment variables when running test command
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9.5k
- Forks
- 905
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 2
Description
What kind of issue is this?
- Feature Request.
Start by telling us what problem you’re trying to solve. Often a solution
already exists! Don’t send pull requests to implement new features without first getting our
support. Sometimes we leave features out on purpose to keep the project small.
Configuration
PlatformIO Version (platformio --version): 6.1.14
Description of problem
Making a custom wrapper around test_testing_command is inconvenient because PlatformIO core has access to information that variables do not, like the current environment name (not just the section name) and the program name (which isn't program on Windows).
If the test command was executed with the PIOENV environment variable then a script would know what the current environment is. An additional variable could contain the program name (although any script is unlikely to work on both Windows and non-Windows environments).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the test_testing_command documentation and the test-command entry point, using PlatformIO 6.1.14 as the reported baseline. Trace how the current environment and program name are exposed, then verify that PIOENV and the requested PIO*/PLATFORMIO_* variables are available to wrapper commands on supported platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100