Skip to main content

pytest-embedded-arduino

A pytest-embedded service for testing Arduino sketch builds on embedded targets.

Service Activation

Activate this service by passing arduino to --embedded-services. Typically combined with esp to enable flashing and serial monitoring:

pytest --embedded-services esp,arduino --app-path /path/to/arduino-build

Extra Functionalities

  • Sketch Metadata Parsing: Automatically locates the compiled sketch binary, bootloader, and partition table from the Arduino build folder.
  • Fast Flashing: Uses differential flashing (--diff-with) to only write updated flash sectors, significantly speeding up consecutive test runs.
  • Full Reflash Option: Easily disable fast flashing with --no-fast-flash when the flash state is unknown (such as after OTA tests).

CLI Options

  • --no-fast-flash: Disable fast differential flashing and write the complete flash image. Default: False.

Quick Example

from pytest_embedded import Dut


def test_arduino_sketch(dut: Dut):
    dut.expect('Setup complete')
    dut.expect('Sensor read: ')

Metadata

Release files for pytest-embedded-arduino 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-arduino 2.10.1
File Size Uploaded Provenance Actions
pytest_embedded_arduino-2.10.1.tar.gz 6.9 kB Without provenance Details for pytest_embedded_arduino-2.10.1.tar.gz

Built distribution (wheel)

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

Total release size: 14.1 kB

Release files / pytest_embedded_arduino-2.10.1.tar.gz

Download URL pytest_embedded_arduino-2.10.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
568f9780c39e714811595558fc59c947ece29f4d4b158a37e207f7e9847b7e2b
BLAKE2b-256 checksum
How to use checksums
f322ec06b1333a13b6566d1a7c02a209d68104aec7c3c14a82b92bd4b85082e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / pytest_embedded_arduino-2.10.1-py3-none-any.whl

Download URL pytest_embedded_arduino-2.10.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5149fbbbc827b9ea5736899d7c2de84f2aa3d165c49519c8ac1495a32d148c5
BLAKE2b-256 checksum
How to use checksums
3c1d7bdf137e9716a76f3d3db7da2aac73d9b85d2767a98e9aea1c61084d5d78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

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

Release history Release notifications | RSS feed

This release

2.10.1 This release

2 release files No provenance

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