Command-Line Options
This page provides a complete reference for all command-line options supported by pytest-embedded and its service extensions.
You can also inspect these options from your terminal at any time by running:
pytest --help
Core Options
Options in the embedded group configure fundamental framework behaviors, multi-device topologies, and reporting.
Option |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Comma-separated list of services to activate (e.g. |
|
integer |
|
Number of DUTs required for multi-device test cases. When greater than 1, fixtures become tuples. |
|
string |
|
Path to the application directory or binary file under test. |
|
string |
|
Name or relative path of the build directory inside |
|
bool (y/n) |
|
Enable or disable timestamp prefixes on live console log output. |
|
string |
|
File extension format for saved log files. |
|
string |
|
File path to save Prometheus/OpenMetrics text benchmarks recorded via |
|
string |
temp dir |
Base directory where session log files are saved. |
|
string |
temp dir |
Base directory for caching test metadata and binary hashes across tests. |
|
integer |
|
Total number of parallel jobs when splitting the test suite in CI. |
|
integer |
|
1-based index of the current parallel CI job. |
|
bool (y/n) |
|
Verify and reject duplicate test case or test script names. |
|
bool (y/n) |
|
Format and indent JUnit XML reports cleanly. |
|
choice |
|
Behavior for Unity test cases in the JUnit report: |
Serial Options
Options in the embedded-serial group configure physical UART serial connections.
Option |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Path to target serial port (e.g. |
|
string |
|
USB device location string (format: |
|
integer |
|
Baud rate for serial communication with the target. |
Espressif SoC Options
Options in the embedded-esp group configure Espressif-specific target identification and flashing via esptool.
Option |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Target chip family (e.g. |
|
string |
same as target |
Chip type for beta target revisions. |
|
string |
|
Dedicated serial port for flashing if different from the monitoring port. |
|
integer |
|
Baud rate used when flashing firmware via |
|
string |
|
MAC address of the target board used to select the correct port among multiple boards. |
|
string |
|
Comma-separated list of USB serial numbers to filter available COM ports. |
|
bool (y/n) |
|
Skip flashing the firmware binary onto the target chip before running the test. |
|
bool (y/n) |
|
Completely erase the target flash memory before flashing. |
|
flag |
|
Pass force mode flag to |
|
bool (y/n) |
|
Dynamically attach target chip name and device count as a test marker. |
ESP-IDF Options
Options in the embedded-idf group configure ESP-IDF build parsing, partition tables, and panic decoding.
Option |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Comma-separated list of officially supported target chips for the test suite. |
|
string |
|
Comma-separated list of preview/experimental target chips for the test suite. |
|
string |
IDF default |
Path to the partition table generator script ( |
|
bool (y/n) |
|
Verify the SHA256 of the flashed binary against the local ELF before skipping flashing. |
|
bool (y/n) |
|
Erase NVS partition blocks when flashing the target board. |
|
bool (y/n) |
|
Disable automatic panic trace decoding and flash/UART core dump checking on test failure. |
JTAG & OpenOCD Options
Options in the embedded-jtag group configure on-chip debugging with OpenOCD and GDB.
Option |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Path to the OpenOCD executable. |
|
string |
|
Command-line arguments passed to OpenOCD. |
|
string |
|
Path to architecture-specific GDB executable. |
|
string |
|
Command-line arguments passed to GDB. |
|
bool (y/n) |
|
Skip creating a GDB instance when only OpenOCD is required. |
QEMU Options
Options in the embedded-qemu group configure virtual machine execution under QEMU.
Option |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Path to the bootable QEMU flash image. |
|
string |
|
Path to the QEMU binary executable. |
|
string |
|
Default base arguments for QEMU. |
|
string |
|
Additional CLI arguments appended to the QEMU invocation command. |
|
string |
|
Path to a virtual eFuse data file. |
|
bool (y/n) |
|
Skip rebuilding the QEMU flash image if one is already present. |
|
bool (y/n) |
|
Enable flash pre-encryption simulation workflow. |
|
string |
|
Key file used for the pre-encrypted flash workflow. |
esp-emu Options
Options in the embedded-espemu group configure lightweight ESP RISC-V SoC emulation.
Option |
Type |
Default |
Description |
|---|---|---|---|
|
string |
merged bin path |
Path to an existing merged flash binary for |
|
string |
|
Path to the |
|
string |
|
Base arguments passed to |
|
string |
|
Extra arguments appended to the |
Arduino Options
Options in the embedded-arduino group configure Arduino sketch testing.
Option |
Type |
Default |
Description |
|---|---|---|---|
|
bool (y/n) |
|
Disable fast differential flashing ( |
Wokwi Options
Options in the embedded-wokwi group configure Wokwi web/API simulation.
Option |
Type |
Default |
Description |
|---|---|---|---|
|
string |
|
Path to a custom Wokwi diagram JSON file. |
|
bool (y/n) |
|
Use USB Serial JTAG interface instead of standard UART in the Wokwi diagram. |