Skip to main content

pytest-embedded-espemu

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

Supported targets: esp32c3, esp32c5, esp32c6, esp32h2, esp32p4, 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.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-espemu 2.10.1
File Size Uploaded Provenance Actions
pytest_embedded_espemu-2.10.1.tar.gz 10.2 kB Without provenance Details for pytest_embedded_espemu-2.10.1.tar.gz

Built distribution (wheel)

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

Total release size: 21.1 kB

Release files / pytest_embedded_espemu-2.10.1.tar.gz

Download URL pytest_embedded_espemu-2.10.1.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
74db4a65cc31572e434f33d43c8a57bfb39f7852d415652476b1450e359f4917
BLAKE2b-256 checksum
How to use checksums
926486e098fc871d740a42cbe698b7dda5b1ad6161d2a6d50b67dcb76d9da11e
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.1-py3-none-any.whl

Download URL pytest_embedded_espemu-2.10.1-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c33ee2a329f1af38e77d4c1d44ef9f3308395a85f47317d85834e1a6a5136228
BLAKE2b-256 checksum
How to use checksums
cd85333eb1257a2e32a39c9f70ed6579a35b114eddff8c6953b80a9bca4c8648
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.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.

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