skillfed

pytest-embedded-idf

Make pytest-embedded plugin work with ESP-IDF.

pytest-embedded-idf v2.8.1 121.1K downloads/30d#11,997 on PyPI151
Permissive license Active released

What it is and what it does

pytest-embedded-idf is a pytest plugin that extends pytest-embedded to work with Espressif's ESP-IDF embedded development framework. It provides ESP-IDF-aware binary parsing and optional automated flashing of built binaries to target boards during test execution. The plugin integrates with the pytest-embedded ecosystem and depends on esp-idf-panic-decoder and esp-bool-parser for enhanced error handling and parsing capabilities.

The package is designed for developers testing ESP-IDF projects who want to automate board flashing and leverage pytest's testing framework. It parses built binaries according to IDF rules to gather additional context, and when the optional pytest-embedded-serial-esp extra is activated, it can automatically flash the binary to the target board at the start of test runs. This reduces manual setup steps and integrates hardware testing into a standard pytest workflow.

Use it for:

  • Automate flashing and testing of Espressif microcontroller firmware during CI/CD pipelines
  • Parse ESP-IDF binary artifacts to extract metadata and validate build outputs in test suites
  • Run integration tests on embedded devices without manual board preparation between test runs
  • Combine panic decoder and boolean parser output with pytest test results for comprehensive embedded debugging

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A pytest plugin that integrates ESP-IDF embedded systems testing with pytest-embedded, enabling binary parsing and optional automated flashing to target boards.

Yes. The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers low-friction installation. It fills a specific niche for ESP-IDF developers who need pytest-based testing with hardware automation. Install it if you are testing ESP-IDF projects and want to integrate board flashing into your pytest workflow.

Install

pytest-embedded-idf on PyPI

pip

pip install pytest-embedded-idf

uv

uv add pytest-embedded-idf

poetry

poetry add pytest-embedded-idf

Installing pytest-embedded-idf

Before you install

Low friction installation as a pure Python wheel. Actively maintained with recent commits and a stable release cycle; last release 59 days ago with the repository actively developed.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install pytest-embedded-idf

import pytest_embedded_idf
# Use within pytest fixtures or test functions with pytest-embedded

Requires Python 3.10 or later; depends on pytest-embedded, esp-idf-panic-decoder, and esp-bool-parser being installed and available.

Verify before relying

  • Whether auto-flashing works with all Espressif board types or only specific models
  • Performance impact of binary parsing on large or complex ESP-IDF projects
  • Compatibility with pytest-embedded-serial-esp when that extra is not activated

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 3 — pytest-embedded, esp-idf-panic-decoder, esp-bool-parser
Maintenance actively maintained — 59 days since the last release
Last repo commit
First released
Downloads 121,054/month — #11,997 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pytest_embedded_idf-2.8.1-py3-none-any.whl

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

Tags

esp-idf pytest testingembedded systems test automationembedded board flashing pytestidf binary parsing testingembedded device test framework
esp-idfembedded-systemshardware-testing

More Testing packages

pluggy

Pluggy provides a plugin system that lets you…

permissive · top 100 on PyPI

pytest

pytest is a testing framework that lets you…

permissive · top 100 on PyPI

virtualenv

virtualenv creates isolated Python environments…

permissive · top 100 on PyPI

coverage

Coverage.py measures which lines of Python code…

permissive · top 1,000 on PyPI

pytest-asyncio

pytest-asyncio is a pytest plugin that enables…

permissive · top 1,000 on PyPI

pytest-json-ctrf

A pytest plugin that generates test reports in…

permissive · top 1,000 on PyPI

pytest-embedded-qemu

A pytest plugin that runs embedded system tests…

permissive · top 15,000 on PyPI

pytest-embedded-serial-esp

A pytest plugin that provides fixtures and…

permissive · top 15,000 on PyPI

pytest-embedded-serial

A pytest plugin that enables serial port…

permissive · top 15,000 on PyPI

esp-idf-monitor

Provides serial communication monitoring and…

permissive · top 15,000 on PyPI

pytest-embedded

A pytest plugin that provides fixtures and…

permissive · top 15,000 on PyPI

pytest-embedded-jtag

Adds JTAG debugging utilities to…

permissive · top 15,000 on PyPI

esp-idf-size

Analyzes statically allocated RAM and binary…

permissive · top 5,000 on PyPI

esp-idf-panic-decoder

Parses ESP-IDF panic handler output (registers…

permissive · top 15,000 on PyPI

idf-component-manager

Automatically downloads and manages ESP-IDF…

permissive · top 5,000 on PyPI

esp-idf-diag

Collects ESP-IDF environment, system, and…

permissive · top 15,000 on PyPI