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

Built distribution (wheel)

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

Total release size: 74.9 kB

Release files / pytest_embedded-2.10.1.tar.gz

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

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

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

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