LinuxCommandLibrary

pio-test

Run unit tests for PlatformIO projects

TLDR

Run unit tests

$ pio test
copy
Run tests for specific environment
$ pio test -e [native]
copy
Run specific test
$ pio test -f [test_example]
copy
Run tests with verbose output
$ pio test -v
copy

SYNOPSIS

pio test [options]

DESCRIPTION

pio test runs unit tests for PlatformIO projects. Supports both native (desktop) and embedded testing. Uses Unity test framework by default. Tests can run on actual hardware or simulators.

PARAMETERS

-e, --environment name

Test environment.
-f, --filter pattern
Test filter pattern.
-i, --ignore pattern
Ignore tests matching pattern.
--upload-port port
Upload port for device tests.
-v, --verbose
Verbose output.
--without-building
Skip building before testing.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community