LinuxCommandLibrary

pio-test

Run local tests on a PlatformIO project.

TLDR

Run all tests in all environments of the current PlatformIO project

$ pio test
copy


Test only specific environments
$ pio test --environment [environment1] --environment [environment2]
copy


Run only tests whose name matches a specific glob pattern
$ pio test --filter "[pattern]"
copy


Ignore tests whose name matches a specific glob pattern
$ pio test --ignore "[pattern]"
copy


Specify a port for firmware uploading
$ pio test --upload-port [upload_port]
copy


Specify a custom configuration file for running the tests
$ pio test --project-conf [path/to/platformio.ini]
copy

Copied to clipboard