oh-xts-generator-template
oh-xts-generator-template
OpenHarmony XTS 测试用例通用生成模板
技能概述
oh-xts-generator-template 是一个通用的 OpenHarmony XTS 测试用例生成模板,采用四层模块化架构,支持各子系统定制化配置。
核心功能
- API 定义解析:解析
.d.ts文件,提取接口、方法、参数、返回值 - API 语法类型过滤和验证:根据任务类型(动态/静态)过滤 API,验证测试用例使用的 API 是否支持目标语法类型
- 智能测试生成:根据测试策略自动生成符合 XTS 规范的测试用例
- 测试设计文档同步生成:在生成测试用例的同时,同步生成结构化的测试设计文档
- ⚠️ 格式化和验证(强制):检查语法规范,验证断言方法,确保测试用例质量
- 测试覆盖分析:分析现有测试文件,识别已覆盖和未覆盖的API
- 覆盖率报告驱动生成:直接基于覆盖率报告中的缺失项生成测试用例(高效模式)
- 编译验证支持:提供 Linux/Windows 环境下的编译指南
适用场景
More from openharmonyinsight/openharmony-skills
openharmony-cpp
Expert coding guide for OpenHarmony C++ development. Use this skill when writing, refactoring, or reviewing C++ code for OpenHarmony projects. It enforces strict project-specific conventions (naming, formatting, headers) and critical security requirements (input validation, memory safety).
81openharmony-security-review
Use when reviewing OpenHarmony C++ system service code for security vulnerabilities, particularly IPC handlers, multithreaded components, or code handling sensitive user data
80oh-ut-generator
|
67cpp-core-guidelines-review
Parallel C++ Core Guidelines code review using multiple specialized sub-agents. Use when reviewing C++ code, modules, or files against C++ Core Guidelines to identify violations. Each sub-agent reviews against a specific guideline section (Functions, Classes, Resource Management, etc.) and outputs findings to separate markdown files in the review/ directory, followed by a consolidated summary.
60openharmony-build
This skill should be used when the user asks to "编译 OpenHarmony", "build OpenHarmony", "编译完整代码", "执行编译", "编译 OpenHarmony 代码", "快速编译", "跳过gn编译", "fast-build", "编译测试", "编译测试用例", "build ace_engine_test", "编译 sdk", "编译 SDK", "build sdk", "build SDK", "编译 ohos-sdk", "编译测试列表", "build test list", "按列表编译测试", "编译指定测试", or mentions building the full OpenHarmony system, fast rebuild, test compilation, SDK compilation, or building tests from a target list. Handles complete build process including build execution, success verification, and failure log analysis with primary focus on out/{product}/build.log.
58ohos-chromium-security-review
|
57