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.10.1

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.10.1
File Size Uploaded Provenance Actions
pytest_embedded_serial_esp-2.10.1.tar.gz 5.2 kB Without provenance Details for pytest_embedded_serial_esp-2.10.1.tar.gz

Built distribution (wheel)

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

Total release size: 10.7 kB

Release files / pytest_embedded_serial_esp-2.10.1.tar.gz

Download URL pytest_embedded_serial_esp-2.10.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
d0e35493febb5e83675fc5d85b9eeda1f754cb84a4de847911a781a7eb325d17
BLAKE2b-256 checksum
How to use checksums
8903dcce0fdb971e1d65462cb1d8cb76d61bfec01974f11a640c28092183e868
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.10.1-py3-none-any.whl

Download URL pytest_embedded_serial_esp-2.10.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
217290b572411312db2c1bae15a425ab5789594125399fb22364491cb1f93477
BLAKE2b-256 checksum
How to use checksums
8f0f193f0e787247f60eb1dab2b059e4202f9cbe8638157a855c2596bc8ba0e0
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.10.1

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.10.1 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