Skip to main content

pytest-embedded-serial-esp

A pytest-embedded service that extends pytest-embedded-serial with esptool integration for Espressif SoCs (ESP32 series).

Service Activation

Activate this service by passing esp to --embedded-services:

pytest --embedded-services esp --app-path /path/to/app

Extra Functionalities

  • Automatic Chip & Port Detection: Uses esptool to query the connected chip and automatically detect the chip model (e.g. esp32, esp32c3, esp32s3) and available serial ports.
  • Device Filtering: Disambiguate multiple connected development boards by MAC address or USB serial number.
  • Flashing Controls: Configure flashing baud rate, force mode, full flash erasure, or separate flash and monitor ports.

CLI Options

  • --target: Expected target chip type. Default: "auto".
  • --beta-target: Beta version target chip type. Default: same as --target.
  • --flash-port: Dedicated serial port for flashing when separate from the monitoring port. Default: None.
  • --port-mac: Expected MAC address of the target board. Default: None.
  • --port-serial-number: Comma-separated list of USB serial numbers to filter available ports. Default: None.
  • --esptool-baud: Baud rate used during flashing. Default: 921600 (or ESPBAUD environment variable).
  • --skip-autoflash: Skip automatically flashing the binary to target flash. Default: False.
  • --erase-all: Erase the entire flash chip before writing binaries. Default: False.
  • --esp-flash-force: Force flashing mode in esptool. Default: False.
  • --add-target-as-marker-with-amount: Attach target chip as a test marker. Default: False.

Quick Example

from pytest_embedded import Dut


def test_chip_info(dut: Dut):
    print(f'Connected to target chip: {dut.app.target}')
    dut.expect('Hello world!')

Metadata

Release files for pytest-embedded-serial-esp 2.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-embedded-serial-esp 2.11.0
File Size Uploaded Provenance Actions
pytest_embedded_serial_esp-2.11.0.tar.gz 5.2 kB Without provenance Details for pytest_embedded_serial_esp-2.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytest-embedded-serial-esp 2.11.0
File Interpreter ABI Platform Actions
pytest_embedded_serial_esp-2.11.0-py3-none-any.whl Python 3 none any Details for pytest_embedded_serial_esp-2.11.0-py3-none-any.whl

Total release size: 10.7 kB

Release files / pytest_embedded_serial_esp-2.11.0.tar.gz

Download URL pytest_embedded_serial_esp-2.11.0.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c814754607bbf935c68943c49406ed211206de1db18061bdc38db7ee5bbc6ff8
BLAKE2b-256 checksum
How to use checksums
bfaa1ee21e03278d9da4a712e8d8cf8c2ae5fcb5846e597aca5a5a6980e03cad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / pytest_embedded_serial_esp-2.11.0-py3-none-any.whl

Download URL pytest_embedded_serial_esp-2.11.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
95540844f221c7a03e89a2e19ccb0e0e8eec053bcd674b709031ba080ee8b966
BLAKE2b-256 checksum
How to use checksums
4f8268628c3745c8c1b127872863c617f295f8114442e226033d936f301be2d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Security for pytest-embedded-serial-esp 2.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.11.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page