R016
OfficialEnforce ArkTS test case naming for cleaner, safer CI
Software Engineering#static analysis#ArkTS#code review automation#regex validation#testcase naming#CI quality gate#test suite hygiene
Authoropenharmonyinsight
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It prevents CI and review churn caused by ArkTS/TS/JS testcase names containing invalid characters by enforcing a strict, consistent naming rule.
Core Features & Use Cases
- Automated testcase scanning: Checks only
.test.ets,.test.ts, and.test.jsfiles forit()first-argument names that contain disallowed characters. - Accurate issue reporting: Flags each offending testcase with file path, line number, snippet, and the rule ID.
- Targeted repair guidance: Recommends removing invalid characters and appending an
Adapt+ three-digit suffix, and keeps@tc.namesynchronized when present. - Use Case: Standardize a large ArkTS test suite where many
it('test.name@001', ...)cases were copied with punctuation, so the pipeline stops warning and review feedback becomes actionable.
Quick Start
Ask the AI to run the R016 scan on your changed .test.ets, .test.ts, or .test.js files and output a list of naming violations with suggested fixed names.
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: R016 Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#r016 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.