You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating Namespace and Datatype parsers using XML and spec_parsing.py code from Cecille's PR #:
Namespace parser:
- Created new TestSpecParsingNamespace.py unit test to test namespaces
- Updated tests.yaml to include TestSpecParsingNamespace.py
- Updated test_metadata.yaml to include TestSpecParsingNamespace.py and reasoning
- Updated matter_testing support module to include new NamespacePathLocation function for Namespace file locations
- Updated spec_parsing to include new functions build_xml_namespaces and parse_namespace, as well as XmlNamespaces and XmlTags dataclasses
Datatype parser:
- spec_parsing module changes:
-- Enhanced XmlDataTypeComponent with fields for docs, types, and constraints
-- Added support for detecting optional and nullable fields in XML
-- Improved constraint parsing for min/max values and attribute references, basically used for dataTypes
-- Improved some error reporting with specific diagnostic messages when parsing dataTypes
- TestSpecParsingDataType unit test module:
-- Added comprehensive test coverage using Matter 1.4.1 cluster XML files
-- Enhanced test output with detailed statistics on XML field usage
-- Added error reporting with specific diagnostic messages
Additionally:
- Removing unneccessary additions in scripts/tests/requirements.txt file
- Adding change to scripts/setup/constraints.txt as was needed to build env
Updates Cecille's PR project-chip#37527
0 commit comments