printing-the-semantics-tree
CommunityDiagnose Compose finder failures instantly
Software Engineering#jetpack-compose#ui-testing#semantics-tree#useUnmergedTree#printToLog#printToString#fetchSemanticsNode
Authorskydoves
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill resolves Jetpack Compose UI test failures where node finders can’t locate the expected element because the developer is matching against the wrong semantics tree (merged vs unmerged) or the tag/matcher is structurally incorrect.
Core Features & Use Cases
- Dump the actual semantics tree: Print the merged tree to log or string to verify what the test framework currently sees.
- Escalate to the unmerged tree when needed: Use the framework’s built-in hint to flip useUnmergedTree and reveal nodes hidden by semantics merging.
- Inspect nodes for custom assertions: Fetch SemanticsNode(s) with fetchSemanticsNode or fetchSemanticsNodes to validate config values directly (including cases that require deeper matcher logic).
Quick Start
Ask your AI coding agent to dump the merged semantics tree for the failing finder using rule.onRoot().printToLog("DEBUG"), then re-run with useUnmergedTree = true if the expected node appears only in the unmerged output.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: printing-the-semantics-tree Download link: https://github.com/skydoves/android-testing-skills/archive/main.zip#printing-the-semantics-tree Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.