Skip to main content

pytest-embedded-espemu

A pytest-embedded service for running tests on esp-emu, Espressif's lightweight emulator for ESP SoCs, without real hardware.

Supported targets: esp32c3, esp32c5, esp32c6, esp32h2, esp32p4, esp32s3, esp32s31.

Service Activation

Activate this service by passing espemu to --embedded-services. Typically combined with idf:

pytest --embedded-services idf,espemu --target esp32c3 --app-path /path/to/app

Extra Functionalities

  • Automatic Merged Binary: Automatically generates a merged flash binary from the build artifacts using esptool merge-bin.
  • Unity Test Support: Fully supports Unity test menus and automated test cases from pytest-embedded-idf.
  • Fast Execution: Lightweight software emulation running UART0 directly on standard I/O.

CLI Options

  • --espemu-image-path: Path to an existing merged flash binary instead of generating one. Default: <app_path>/<build_dir>/espemu_image.bin.
  • --espemu-prog-path: Path to the esp-emu executable. Default: "esp-emu".
  • --espemu-cli-args: Base arguments passed to esp-emu. Default: None.
  • --espemu-extra-args: Extra arguments appended to the esp-emu command line (e.g. --espemu-extra-args "--net user,restrict=yes"). Default: None.

Quick Example

from pytest_embedded import Dut


def test_espemu(dut: Dut):
    dut.expect('Hello from esp-emu!')

Metadata

Release files for pytest-embedded-espemu 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-espemu 2.10.2
File Size Uploaded Provenance Actions
pytest_embedded_espemu-2.10.2.tar.gz 10.2 kB Without provenance Details for pytest_embedded_espemu-2.10.2.tar.gz

Built distribution (wheel)

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

Total release size: 21.1 kB

Release files / pytest_embedded_espemu-2.10.2.tar.gz

Download URL pytest_embedded_espemu-2.10.2.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bb9d5c99c0ebd6dc5933f13f6d9e48cf3ebf966f15e7a5bb708a845c2b9abcec
BLAKE2b-256 checksum
How to use checksums
82216f87807044d5c3bcddd7bcd6df6b9347d520621c8fd7fe50f43530a11234
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / pytest_embedded_espemu-2.10.2-py3-none-any.whl

Download URL pytest_embedded_espemu-2.10.2-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfb97e49be7d907f654510c05064ff47e5cb14c683c74f7b8f2942f7a9189843
BLAKE2b-256 checksum
How to use checksums
49ca1c0c976941ff68e89b384ac77c20fb74d98af905c21a229d6c39e330d705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Security for pytest-embedded-espemu 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.

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