@selfcure/analyzer
v0.1.1
Published
Classifies interactive elements and computes a testability score per component
Downloads
17
Readme
@selfcure/analyzer
Testability scorer for selfcure — classifies interactive elements and computes a 0–100 score per component.
Takes ComponentMeta[] from @selfcure/crawler, builds a selectorRanking per element (data-testid → id → aria-label → name → CSS → XPath), detects ambiguous locators (when the best selector for an element also matches a sibling), and emits a testability score plus a dedup-aware suggested data-testid.
Internal library powering @selfcure/cli and @selfcure/mcp.
Install
npm install @selfcure/analyzerDocs
Full documentation: https://github.com/ricardofrancocustodio/selfcure#readme
