ArkUI TDD Testing Patterns
Implements standardized test-driven development practices for ArkUI NG component patterns to ensure high code coverage and reliability.
This skill provides a comprehensive framework for writing unit tests and performing TDD within the ArkUI Ace Engine ecosystem, specifically targeting NG component Pattern methods like OnModifyDone and OnDirtyLayoutWrapperSwap. It enforces industry-standard best practices such as direct method invocation, mandatory state resets, and the use of named constants while strictly prohibiting anti-patterns like magic numbers or documentation-only tests. By guiding developers through rigorous branch coverage requirements and API verification via source analysis, it ensures that UI component logic remains robust, maintainable, and thoroughly validated against both positive and negative execution paths.