Skip to content

Commit

Permalink
python.md: Add real example for run_python_test for the lighting_app (p…
Browse files Browse the repository at this point in the history
…roject-chip#36645)

This PR adds a real example for running the `run_python_test.py` script against the `chip-lighting-app`.
  • Loading branch information
soares-sergio authored Nov 28, 2024
1 parent 7c557f6 commit abc89a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/testing/python.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,12 @@ example DUT on the host and includes factory reset support
./scripts/tests/run_python_test.py --factory-reset --app <your_app> --app-args "whatever" --script <your_script> --script-args "whatever"
```

For example, to run TC-ACE-1.2 tests against the linux `chip-lighting-app`:

```shell
./scripts/tests/run_python_test.py --factory-reset --app ./out/linux-x64-light-no-ble/chip-lighting-app --app-args "--trace-to json:log" --script src/python_testing/TC_ACE_1_2.py --script-args "--commissioning-method on-network --qr-code MT:-24J0AFN00KA0648G00"
```

# Running tests in CI

- Add test to the `repl_tests_linux` section of `.github/workflows/tests.yaml`
Expand Down

0 comments on commit abc89a7

Please sign in to comment.