# qt-qml-test

Generates Qt Quick Test suites for QML components. Saves ready test files to verify component properties and signal emissions in Qt 6.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 587 installs · ★ 507
- Author: qt-ai-skills
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/TheQtCompanyRnD/agent-skills/tree/HEAD/skills/qt-qml-test/SKILL.md
- Updated: 2026-10-20
- HTML: https://affpapa.org/en/nevibecode/skills/qt-qml-test

## What it does

The skill inspects QML files and writes `tst_*.qml` test suites directly to the `tests/` directory. It avoids dumping raw test code into the chat conversation. Generated tests rely on `TestCase`, `SignalSpy`, and `tryCompare` helpers to verify controls such as `Button` and `Slider`.

During generation, it checks the root component type. Singleton objects and `ApplicationWindow` structures receive specialized test templates. The skill skips Qt Quick 3D spatial nodes like `Model` or `Skybox`. If child elements lack `objectName` identifiers, it flags them so you can expose them for testing.

Setting up CMake runners or CTest integration remains outside this skill. You get test files, but execution requires separate build configuration.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/qt-qml-test/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/qt-qml-test/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/qt-qml-test/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/qt-qml-test/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install TheQtCompanyRnD/agent-skills qt-qml-test
```

2. **Manually: put the files in place**
- File: `.github/skills/qt-qml-test/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/TheQtCompanyRnD/agent-skills --path skills/qt-qml-test
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/qt-qml-test/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add TheQtCompanyRnD/agent-skills --skill qt-qml-test -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/TheQtCompanyRnD/agent-skills/tree/HEAD/skills/qt-qml-test/SKILL.md

## When to use it
- create `TestCase` files for standalone QML components
- verify signal emissions with `SignalSpy`
- batch-generate unit tests across multiple QML files
- validate states and animations of Qt Quick Controls

## Example prompts
- Generate tests for MyButton.qml
- Create Qt Quick test cases for all components in controls/
- Write tests verifying signal emission in Dial.qml

## Similar
- [improve-codebase-architecture](https://affpapa.org/en/nevibecode/skills/improve-codebase-architecture.md) — skill · 1163035 installs
- [design-taste-frontend](https://affpapa.org/en/nevibecode/skills/design-taste-frontend.md) — skill · 678700 installs
- [tdd](https://affpapa.org/en/nevibecode/skills/tdd.md) — skill · 1141062 installs
- [skill-creator](https://affpapa.org/en/nevibecode/skills/skill-creator.md) — skill · 414180 installs
- [agent-browser](https://affpapa.org/en/nevibecode/skills/vercel-labs-agent-browser.md) — skill · 1200000 installs
- [prototype](https://affpapa.org/en/nevibecode/skills/prototype.md) — skill · 986201 installs

From the same set: [theqtcompanyrnd/agent-skills](https://affpapa.org/en/nevibecode/by/theqtcompanyrnd/agent-skills.md) — 12 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
