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

Built distribution (wheel)

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

Total release size: 10.7 kB

Release files / pytest_embedded_serial_esp-2.11.1.tar.gz

Download URL pytest_embedded_serial_esp-2.11.1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fcad0c98585ad61e795ff0709081cda7cdec3d00d053d89ea75e29af551209b4
BLAKE2b-256 checksum
How to use checksums
3f3760024179fb571b4239da6b6e2a0f1ee801052c73f1c9cee8a079265ba237
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.1-py3-none-any.whl

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