check-test-code-quality

Analyze OpenHarmony XTS test code for rule violations and generate Excel reports.

31|6|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill check-test-code-quality
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: check-test-code-quality
Source: https://github.com/openharmonyinsight/openharmony-skills/tree/main/skills/check-test-code-quality
Command: npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill check-test-code-quality

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openpyxl, pandas, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill finds low-level issues and coding standard violations in OpenHarmony XTS test code, so you can catch problems before they waste build time and test cycles.

Core Features & Use Cases

  • Scans 23 rules (Critical + Warning) covering assertions correctness, naming rules, configuration correctness, and common coding pitfalls.
  • Generates a detailed Excel report for triage, including rule IDs, locations, and a subsystem mapping.
  • Supports project-level duplicate detection within independently identified XTS projects (so results stay scoped and meaningful).
  • Optional auto-fix for a limited set of rules (e.g., testcase formatting/naming, certain duplicates) to accelerate remediation.

Quick Start

Ask the AI to run check-test-code-quality on your XTS code directory and show the Excel report location and a rule-by-rule summary.

Frequently Asked Questions about check-test-code-quality

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I check OpenHarmony XTS test code for compliance and quality issues?

To check OpenHarmony XTS test code quality, scan your directory to detect assertion correctness, naming rules, and configuration violations across 23 Critical and Warning rules, generating structured issue records and an Excel report for triage.

What static analysis rules are applied when validating XTS test suites?

Static analysis for XTS test suites applies 23 Critical and Warning rules covering assertion correctness, coding standard violations, naming constraints, configuration correctness, and common coding pitfalls to catch issues before build time.

Can I automatically fix coding standard violations found in XTS test cases?

Yes, you can automatically fix coding standard violations in XTS test cases using the optional --fix flag. This accelerates remediation for supported rules, including testcase formatting, naming corrections, and certain duplicate case removals.

Does the XTS test code analysis support filtering by specific rule levels?

Yes, XTS test code analysis supports filtering by specific rule levels. You can use the --level and --rules flags to honor rule selection, scoping the deterministic scanning to only Critical or Warning checks as needed.

How do I generate an Excel report for XTS static analysis triage?

You generate an Excel BOM-encoded report for XTS static analysis triage by running a scan on your project directory. The report includes detailed rule IDs, issue locations, and subsystem mapping for structured issue records.

What is the best way to detect duplicate test cases across independent XTS projects?

The best way to detect duplicate test cases is to run project-level duplicate detection within independently identified XTS projects. This ensures results stay scoped and meaningful, preventing false positives across unrelated subsystems.