R015
OfficialFind missing Level in test cases early
Software Engineering#static analysis#test quality#code scanning#rule enforcement#arkts#it()#level parameter
Authoropenharmonyinsight
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill detects ArkTS/TypeScript/JavaScript test cases where the it() function is missing a required Level.LEVEL* parameter, helping you enforce consistent test severity levels and avoid non-compliant test definitions.
Core Features & Use Cases
- Detects it() declarations in test files that lack any Level.LEVEL* argument, even when the declaration spans multiple lines.
- Avoids false positives when the it() call line ends with a comma, indicating parameters may be provided on the next line.
- Works across .test.ets, .test.ts, and .test.js files to standardize test-case quality and reporting.
Quick Start
Ask the AI to run rule R015 on your project’s test files (.test.ets/.test.ts/.test.js) and return a list of all it() calls missing Level.LEVEL* with line numbers and suggested fixes.
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: R015 Download link: https://github.com/openharmonyinsight/openharmony-skills/archive/main.zip#r015 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.