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

Built distribution (wheel)

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

Total release size: 14.1 kB

Release files / pytest_embedded_arduino-2.10.0.tar.gz

Download URL pytest_embedded_arduino-2.10.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4f88d8fc66828331c6472b61f7990822b3c572a083256b9d7a99800f94093ac0
BLAKE2b-256 checksum
How to use checksums
daa05a655291ed9bc6b30cbe710128f4123e2820360c821e680dcc69d4e2f1f5
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.0-py3-none-any.whl

Download URL pytest_embedded_arduino-2.10.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68ae33576ac367a4c66a0f409d781d0e9119b18202b4d515f5339cca624ef3eb
BLAKE2b-256 checksum
How to use checksums
b143ce227c96a36c10cde735b1fff6125dc786fa04adc6e8a2173f7a601ac7d5
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.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.10.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