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

Built distribution (wheel)

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

Total release size: 14.1 kB

Release files / pytest_embedded_arduino-2.11.1.tar.gz

Download URL pytest_embedded_arduino-2.11.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
581a30b311ae61113a703f5b961ccbb697ba2015fcfe62cf2362573babd8afad
BLAKE2b-256 checksum
How to use checksums
1b07b9bae95baa625870db2b964a96666064fde5d295378b797ee659347cbbc3
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.1-py3-none-any.whl

Download URL pytest_embedded_arduino-2.11.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e556cf2816e646aead619d32b94c03ebd502fd097364aa642efa8c05375e624e
BLAKE2b-256 checksum
How to use checksums
d9e645f717437f8611964bd8a6b810d28447623892c7ac2e3b0b7e9ca51788bf
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.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.11.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