Forrest logo
back to the pio tool

pio-test:tldr:2847d

pio-test: Test only specific environments.
$ pio test --environment ${environment1} --environment ${environment2}
try on your machine

This command is an instruction to run tests using the PlatformIO (PIO) testing framework. The pio test command is used to execute tests for a specific environment or set of environments.

In this particular command, two environments are specified using the --environment flag. The value of ${environment1} and ${environment2} should be replaced with the names of the desired environments.

An environment in PlatformIO represents a specific hardware platform or configuration. It defines the board, framework, and other settings required for building and testing the code.

By providing multiple --environment flags in the command, the tests will be executed for both specified environments. This can be useful when testing code compatibility or functionality across different platforms or configurations within the project.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pio tool