qt-unittest-build

Generate a complete autotests framework with CMake configurations for Qt projects.

7|3|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/re2zero/deepin-skills --skill qt-unittest-build
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qt-unittest-build
Source: https://github.com/re2zero/deepin-skills/tree/main/qt-unittest-build
Command: npx skills add https://github.com/re2zero/deepin-skills --skill qt-unittest-build

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill automates the creation of a complete autotests framework for Qt projects, unifying dependencies, fixed scripts, and a sub-agent workflow into a ready-to-use testing scaffold.

Core Features & Use Cases

  • Built-in resources: stub-ext tooling, run scripts, and CMake helpers are copied to the autotests directory.
  • Automated structure creation: generates CMakeLists, tests, and documentation based on project layout.
  • AI-assisted analysis: analyzes project CMake or .pro files to infer project name, Qt version, and modules.
  • Use Case: Quickly add unit testing to a Qt project without manual wiring.

Quick Start

In OpenCode, trigger the qt-unittest-build skill with a simple natural language request to scaffold autotests for the current project.

Frequently Asked Questions about qt-unittest-build

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

FAQPage Schema
How do I add unit tests to a Qt project using CMake automatically?

Scaffolding Qt autotests automatically generates a complete testing framework by analyzing your project structure. It infers the Qt version and dependencies, then creates CMake configurations and test sources without manual wiring.

What is the best way to scaffold autotests for an existing Qt application?

The best way to scaffold autotests for an existing Qt application is using an automated framework generator. It copies built-in stub-ext tooling, run scripts, and CMake helpers to an autotests directory based on your project layout.

Does the Qt autotests generator work with both CMake and .pro files?

Yes, the Qt autotests generator works with both CMake and .pro files. It performs AI-assisted analysis on these files to infer your project name, Qt version, and required modules before generating the test directory structure.

Can I generate Qt unit testing scaffolds without manually writing CMakeLists?

Yes, you can generate Qt unit testing scaffolds without manually writing CMakeLists. The skill uses a built-in sub-agent and fixed scripts to assemble and write the autotests directory, generating all required CMake configurations automatically.

What components are included when generating an autotests framework for Qt?

Generating an autotests framework for Qt includes built-in stub-ext tooling, run scripts, and CMake helpers. It also creates CMakeLists, test sources, and documentation based on your specific project layout.