{"library":"pytest-embedded","title":"pytest-embedded","description":"A pytest plugin designed for embedded system testing. Current version 2.7.0 provides fixtures and utilities for testing firmware on microcontrollers and SoCs, with support for serial, jtag, and qemu backends. Release cadence is irregular, with recent updates focused on compatibility with pytest 8+.","language":"python","status":"active","last_verified":"Mon Apr 27","install":{"commands":["pip install pytest-embedded","pip install 'pytest-embedded[serial]'","pip install 'pytest-embedded[qemu]'","pip install 'pytest-embedded[all]'"],"cli":null},"imports":["import pytest_embedded"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pytest\nimport os\n\n# conftest.py\ndef pytest_embedded_config():\n    return {\n        'app': os.environ.get('APP_PATH', '.'),\n        'port': os.environ.get('TARGET_PORT', '/dev/ttyUSB0'),\n        'target': os.environ.get('TARGET', 'esp32'),\n    }\n\n# test_example.py\ndef test_basic(dut):\n    dut.expect('Hello from firmware')\n    dut.write('test_cmd')\n    dut.expect('ok', timeout=5)","lang":"python","description":"Basic example with DUT fixture. Requires conftest.py defining pytest_embedded_config.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}