pytest-embedded-serial
Make pytest-embedded plugin work with Serial.
Decision gist · record as of 2026-08-14
Yes. This is a stable, actively maintained plugin for a specific but important use case: testing embedded systems over serial connections. Low install friction, permissive license, no known vulnerabilities, and recent activity make it a reliable choice if you need pytest-based serial device testing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; pyserial must be available for serial port access.
- Low friction install with a pure-Python wheel.
- Actively maintained with a recent release; last commit on 2026-08-10 and 59 days since the latest release indicate steady development.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, even in commercial projects.
last release 2026-06-16 (59 days) · last repo commit 2026-08-10 · 151 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 157,907 downloads/mo, #10,742 on PyPI
Alternatives
Verify before relying
pip install pytest-embedded-serial
from pytest_embedded import Dut
def test_serial_device(dut: Dut):
dut.expect('expected_output')
dut.expect_exact('exact_match')- Whether the serial service is automatically enabled or requires --embedded-services serial flag
- Specific serial port configuration requirements (baud rate, timeout defaults)
- Whether pyserial is bundled or must be installed separately for serial functionality
What it is and what it does
pytest-embedded-serial is a pytest plugin that extends the pytest-embedded framework specifically for serial port communication with embedded devices. It provides fixtures like `Dut` (Device Under Test) that allow you to send commands to and capture output from devices connected via serial, using pattern matching methods like `expect()` and `expect_exact()` to validate device behavior.
The plugin is designed for testing embedded systems where you need to interact with hardware over serial connections. It depends on pytest-embedded for core functionality and pyserial for low-level serial port access. The plugin supports semantic versioning and is actively maintained, with support for modern Python versions (3.10 through 3.14).
Use it for
- Test firmware output from microcontroller boards connected via USB serial
- Validate command-response behavior of embedded devices during CI/CD pipelines
- Automate serial port interaction testing for IoT device prototypes
- Capture and assert on device debug logs and diagnostic output over serial
- Integration testing of embedded applications with real hardware or emulation
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a stable, actively maintained plugin for a specific but important use case: testing embedded systems over serial connections. Low install friction, permissive license, no known vulnerabilities, and recent activity make it a reliable choice if you need pytest-based serial device testing.
Install
pytest-embedded-serial on PyPI
Before you install
Low friction install with a pure-Python wheel. Actively maintained with a recent release; last commit on 2026-08-10 and 59 days since the latest release indicate steady development.
Requires Python 3.10 or later; pyserial must be available for serial port access.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, even in commercial projects.
Quickstart
pip install pytest-embedded-serial
from pytest_embedded import Dut
def test_serial_device(dut: Dut):
dut.expect('expected_output')
dut.expect_exact('exact_match')
Verify before relying
- Whether the serial service is automatically enabled or requires --embedded-services serial flag
- Specific serial port configuration requirements (baud rate, timeout defaults)
- Whether pyserial is bundled or must be installed separately for serial functionality
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespytest-embeddedpyserial |
| Maintenance | Actively maintained 59 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 157,907 / month, #10,742 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: Testing |
Evidence: pytest_embedded_serial-2.8.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest serial port testing”
- pytest-embedded-serialA pytest plugin that enables serial port testing for embedded…
- pytest-embedded-serial-espA pytest plugin that provides fixtures and services for testing…
- pytest-embeddedA pytest plugin that provides fixtures and services for testing…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-embedded · pytest-embedded-jtag · pytest-embedded-serial-esp · pytest-embedded-qemu · pytest-embedded-idf · pytest-deadfixtures · esptool · esp-idf-monitor · imgtool · pioarduino