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
esptoolto 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(orESPBAUDenvironment 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 inesptool. 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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_embedded_serial_esp-2.10.0.tar.gz | 5.2 kB | Without provenance | Details for pytest_embedded_serial_esp-2.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_embedded_serial_esp-2.10.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_embedded_serial_esp-2.10.0-py3-none-any.whl |
Total release size: 10.7 kB
Release files / pytest_embedded_serial_esp-2.10.0.tar.gz
| Download URL | pytest_embedded_serial_esp-2.10.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e60690df94eee9f87100241d9d9ab53d6825244ca348873c82460c190444fed
|
|
BLAKE2b-256 checksum How to use checksums |
bf47aba5baa323b22cb5a544ad5656aec60b657de2dab0037cfb3b0d2634774e
|
| 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.0-py3-none-any.whl
| Download URL | pytest_embedded_serial_esp-2.10.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f2534aa470fc250ef50bbeb8c8c20da56d15858a439bb3de21602e8a716d4eb0
|
|
BLAKE2b-256 checksum How to use checksums |
b10f0bc52f0d8162aa660f9deeaf823a455f56e19277c2a3e4827727c80a299a
|
| 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.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.