Skip to content

Conversation

@ArekBalysNordic
Copy link
Contributor

@ArekBalysNordic ArekBalysNordic commented Nov 14, 2025

TODO:

  • Add test for west zap-gui, chcek if the zcl.json exists if provided as an argument
  • Add test for --full generate argument
  • Add test for synchronizing with Matter repo

Summary

Covered all west zap functions in unit tests.
Added a workflow to run these tests on each zap_*.py function change.

Testing

New unit tests

manifest-pr-skip

@ArekBalysNordic ArekBalysNordic force-pushed the west_zap_unit_tests branch 5 times, most recently from 7e35bb8 to 5c782d9 Compare November 18, 2025 07:47
@ArekBalysNordic ArekBalysNordic marked this pull request as ready for review November 18, 2025 07:55
@ArekBalysNordic ArekBalysNordic requested a review from a team as a code owner November 18, 2025 07:55
@ArekBalysNordic ArekBalysNordic force-pushed the west_zap_unit_tests branch 7 times, most recently from d833f50 to 467e2e4 Compare November 21, 2025 08:29
@ArekBalysNordic ArekBalysNordic force-pushed the west_zap_unit_tests branch 3 times, most recently from 4f358ba to a7af490 Compare November 21, 2025 12:35
- Now the zcl.json contains the rules for zap-tool that are
used with generating a zap file. The rules file is the JSON file
that contains relative paths to .js files. To properly synchronize
a custom zcl.json file, we must copy this rules file, update
all paths to be relative to the custom zcl.json and finally run
zap-gui or zap-sync with all proper paths.

Apart from the synchronization updates several issues with zap
generated and added helper functions for obtaining paths.

Covered all major scenarios for all west zap commands in unit
tests.

Added a github workflow to run the tests if any west script is
changed.

Signed-off-by: Arkadiusz Balys <[email protected]>
@ArekBalysNordic ArekBalysNordic merged commit 9c6dbea into nrfconnect:master Nov 24, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants