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.