qt-unittest-make
Qt Unit Test Generator
Overview
Core principle: 使用 LSP 精确分析类结构,生成 100% 函数覆盖率的测试用例,并强制验证构建成功。
架构模式: Skill 路由 + 子 Agent 全栈执行。子 Agent 负责所有具体工作,Skill 仅负责调用和结果反馈。
关键特性: 智能 CMake 合并、增量更新支持、严格的构建验证、详细的错误处理。
Iron Laws
- 仅使用 Google Test: 测试框架固定为 GTest,不支持 Qt Test
- 100% 函数覆盖率: 每个 public/protected 函数必须至少一个测试用例
- 智能 CMake 合并: 根据项目实际情况优化合并,确保通用性
- 支持增量更新: 对比现有测试,补全未覆盖函数
- 必须验证构建: 生成后必须编译成功才能报告完成
- 编译失败必须修正: 每个错误最多重试 3 次,最大循环 10 次
More from re2zero/deepin-skills
qt-compatibility-build
Use when maintaining Debian packages that need Qt5/Qt6 dual support, CMakeLists.txt has hard-coded Qt5/Qt6 or DTK5/DTK6 versions, or projects need dynamic library linking based on detected Qt version for deepin V25/V20 compatibility
65qt-translation-assistant
Use when user requests translating Qt project localization files (TS files), automating translation workflows, or setting up multilingual support for Qt applications. This skill uses parallel processing with ThreadPoolExecutor to translate TS (Translation Source) files efficiently.
36qt-unittest-build
为 Qt 项目生成单元测试框架。包含完整依赖、子 Agent 和固定脚本,一键生成 autotests 测试框架。
23git-commit-workflow
Expertise in structured Git commit workflow with Chinese team conventions. Use
18github-review-report
Use when generating Chinese format Excel reports from GitHub code reviews with AI analysis and filtering by date, branch, or reviewers
18create-release-tags
Use when releasing new versions for Debian projects with optional linglong.yaml support, updating debian/changelog, incrementing patch versions automatically, and creating git commits
17