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 theesp-emuexecutable. Default:"esp-emu".--espemu-cli-args: Base arguments passed toesp-emu. Default:None.--espemu-extra-args: Extra arguments appended to theesp-emucommand 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.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_espemu-2.10.0.tar.gz | 10.2 kB | Without provenance | Details for pytest_embedded_espemu-2.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_embedded_espemu-2.10.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_embedded_espemu-2.10.0-py3-none-any.whl |
Total release size: 21.1 kB
Release files / pytest_embedded_espemu-2.10.0.tar.gz
| Download URL | pytest_embedded_espemu-2.10.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d75df3c96d06afec217271fc208e0c1ad89103144dd06b5f2588cc6a0500c63
|
|
BLAKE2b-256 checksum How to use checksums |
ba2bc4bfd3919e4051310324f192689f5a767a1df5e34abbc2a7585498ad0c54
|
| 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.0-py3-none-any.whl
| Download URL | pytest_embedded_espemu-2.10.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f36c56f130ccdccb2372862de3b8ed9c67d9bb8c1e87d12a7d45e9aaf120688
|
|
BLAKE2b-256 checksum How to use checksums |
e2677840cb221b2eb0362026e0de61ddd39374253f515efd014b500910c3015f
|
| 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.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.