Skip to main content

pytest-embedded

The core plugin for the pytest-embedded framework. Designed for embedded testing across multiple targets and environments.

Key Features

  • Core Fixtures: Provides essential fixtures including dut, app, msg_queue, pexpect_proc, and redirect.
  • String & Regex Matching: Integrates pexpect for powerful output parsing with dut.expect() and dut.expect_exact().
  • Multi-DUT Orchestration: Test multi-device topologies (such as master-slave or mesh networks) using --count.
  • Flexible Parametrization: Easily parametrize apps, targets, and services using pytest markers.
  • Unified Test Reports: Parse and merge embedded Unity test results into JUnit XML reports.

Quickstart

from pytest_embedded import Dut


def test_basic_expect(redirect, dut: Dut):
    with redirect():
        print('Ready to test!')

    dut.expect('Ready to test!')

Run the test:

pytest test_basic.py -s

Metadata

Release files for pytest-embedded 2.10.2

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 2.10.2
File Size Uploaded Provenance Actions
pytest_embedded-2.10.2.tar.gz 39.3 kB Without provenance Details for pytest_embedded-2.10.2.tar.gz

Built distribution (wheel)

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

Total release size: 74.9 kB

Release files / pytest_embedded-2.10.2.tar.gz

Download URL pytest_embedded-2.10.2.tar.gz
Size 39.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bad091bb7f5b3b3929a9fcde44547ff835da2f4428d374471ed7dc94e214d595
BLAKE2b-256 checksum
How to use checksums
8f5fc2e97cda3d432e7152108aea665c0bfbacaca72a98cf9491640d64e355ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Release files / pytest_embedded-2.10.2-py3-none-any.whl

Download URL pytest_embedded-2.10.2-py3-none-any.whl
Size 35.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84a803bfe7ad3c2921249b9c3931da34fc744262bd627def4cba7559b0bbb705
BLAKE2b-256 checksum
How to use checksums
a733f340d7b5fb0a0ff120876782984191785caeb1bb38a0f0296a770b1a1e0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.31.0

Security for pytest-embedded 2.10.2

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