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.11.0

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.11.0
File Size Uploaded Provenance Actions
pytest_embedded_arduino-2.11.0.tar.gz 6.9 kB Without provenance Details for pytest_embedded_arduino-2.11.0.tar.gz

Built distribution (wheel)

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

Total release size: 14.1 kB

Release files / pytest_embedded_arduino-2.11.0.tar.gz

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

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

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

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

Release history Release notifications | RSS feed

This release

2.11.0 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