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

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

Built distribution (wheel)

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

Total release size: 10.7 kB

Release files / pytest_embedded_serial_esp-2.10.2.tar.gz

Download URL pytest_embedded_serial_esp-2.10.2.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9e0f7c69a66e57463f8176c9907a07a67e5baa8030b5f69d87e314d1fa5374b0
BLAKE2b-256 checksum
How to use checksums
1d123d43b8d6037bca944c5de0fc61e88e8a18663f41c51d3c7f304709c59b04
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.2-py3-none-any.whl

Download URL pytest_embedded_serial_esp-2.10.2-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0cb719ae400ef3cc37e9e5db6c96f46ac4e8cc892926b75430534e4cb35f510a
BLAKE2b-256 checksum
How to use checksums
f56756843f4b3de2dfcd166eb0e2076217289798df9ae6bcc7aa9c4ae27a5b20
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.2

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