Skill for Running Python Tests#72253
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new markdown file, SKILL.md, under .agents/skills/python-test-runner/ which provides comprehensive guidelines and instructions for setting up and running Python-based integration and certification tests. The feedback identifies a syntax error in one of the command-line examples due to an unmatched trailing double quote.
for more information, see https://pre-commit.ci
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #72253 +/- ##
=======================================
Coverage 55.52% 55.52%
=======================================
Files 1629 1629
Lines 111095 111092 -3
Branches 13416 13415 -1
=======================================
- Hits 61684 61683 -1
+ Misses 49411 49409 -2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
PR #72253: Size comparison from 507b108 to 0f4ef55 Full report (31 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, nrfconnect, psoc6, qpg, realtek, stm32, telink)
|
Co-authored-by: Tennessee Carmel-Veilleux <tennessee.carmelveilleux@gmail.com>
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
PR #72253: Size comparison from 507b108 to 2c32d46 Full report (35 builds for bl602, bl616, bl702, bl702l, cc13x4_26x4, cc32xx, efr32, esp32, nrfconnect, psoc6, qpg, realtek, stm32, telink)
|
|
|
||
| --- | ||
|
|
||
| ## Running Tests: Method 1 (CI Meta Runner - Recommended) |
There was a problem hiding this comment.
should we recommend this? local.py is optimized to "run all tests" but this also means the build-apps will build a lot of things.
There was a problem hiding this comment.
In my opinion this is the nicest way (once things are setup) as it runs what CI does!
You can always use --test-filter {test_name} to filter things out
| ### 1. Identify the Required Application | ||
|
|
||
| Open the Python test file (e.g., `src/python_testing/TC_FAN_3_3.py`) and locate | ||
| the **`=== BEGIN CI TEST ARGUMENTS ===`** block near the top of the file. Under |
There was a problem hiding this comment.
should we mention the possibility of multiple runs? we may want to ask the user which run if more exists (or run all, which may need to run more applications.
| --override-binary-path ALL_CLUSTERS_APP out/linux-x64-all-clusters-no-ble/chip-all-clusters-app | ||
| ``` | ||
|
|
||
| ### Notable Arguments for `local.py python-tests` |
There was a problem hiding this comment.
I believe there's also a --app-filter if I remember correctly? That enables you to filter by both test name and app name.
For example, if you want to run all of the FAN tests only against the all-devices-app you could do something like --test-filter TC_FAN --app-filter ALL_DEVICES
Need to check if this still works
| and running python-based integration and certification tests located in | ||
| `src/python_testing/`. Use this skill to run important regression tests | ||
| during developement or, when building new example apps, or when there is a | ||
| need to execute python test scripts or "certification test scripts" or |
There was a problem hiding this comment.
Could probably teach it to run device basic composition tests and device conformance tests.
| # Python Test Runner | ||
|
|
||
| This skill provides expert guidelines for running Python-based integration and | ||
| certification tests located in `src/python_testing/`. |
There was a problem hiding this comment.
Could also teach it to collect a data model dump by running the TC_IDM test that generates the files.
Summary
This PR is adding a new skill on how to run python tests in this repo. It goes over how to read the test file's CI arguments, build the relevant apps needed for a test, setting up the python environment, and the different methods a test can be run in.
Testing