R016

Official

Enforce ArkTS test case naming for cleaner, safer CI

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.js files for it() 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.name synchronized 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.