gopiotr / pytest-device-adapter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Device adapter

Installation

Installation from the source:

pip install .

Installation the project in editable mode:

pip install -e .

Usage

In Zephyr project switch to this PR: zephyrproject-rtos/zephyr#56950

git pr https://github.com/zephyrproject-rtos/zephyr/pull/56950

Built shell application by west and call pytest directly:

cd samples/subsys/shell/shell_module
west build -p -b nrf52840dk_nrf52840
pytest --device-adapter --device-type=hardware --device-serial=/dev/ttyACM0 --build-dir=build

Or run this test by Twister:

./scripts/twister -vv -p nrf52840dk_nrf52840 --device-testing --device-serial /dev/ttyACM0 -T samples/subsys/shell/shell_module -s samples/subsys/shell/shell_module/sample.shell.shell_module

About

License:Apache License 2.0


Languages

Language:Python 100.0%