A pytest plugin that has multiple services available for various functionalities. Designed for embedded testing.
All packages are published to PyPI. Please install them via
pip install pytest-embedded
- Create a file
- Run the test with
pytest, the result would be like:
- if run with
pytest -s, the output would be as follows:
You can activate more services with
pytest --embedded-services service[, service] to enable extra fixtures and functionalities.
These services are provided by several optional dependencies. You can install them via
pip as well.
serial: serial port utilities.
esp: auto-detect target/port by esptool.
idf: auto-detect more app info with ESP-IDF specific rules, auto-flash the binary into the target.
jtag: openocd/gdb utilities
qemu: running test cases on QEMU instead of the real target.
arduino: auto-detect more app info with arduino specific rules, auto-flash the binary into the target.
- Documentation is hosted at https://docs.espressif.com/projects/pytest-embedded/en/latest/
- More examples under examples
Packages under this repo mainly use semantic versioning. Sometimes a bug fix version may contain some non-breaking new features as well. It is recommended to use
pytest-embdded~=1.0 to get rid of breaking changes, and use the latest new features.