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

Built distribution (wheel)

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

Total release size: 21.1 kB

Release files / pytest_embedded_espemu-2.11.1.tar.gz

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

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

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

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

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