# godot-testing-patterns

Provides testing decision trees and GdUnit4 templates for Godot. Guides developers through unit tests, headless CI runs, frame stepping, and network mocks.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 585 installs · ★ 893
- Author: thedivergentai
- License: LGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-testing-patterns/SKILL.md
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/skills/godot-testing-patterns

## What it does

This skill supplies decision trees and boilerplate scripts structured around GdUnit4. It separates isolated pure-logic checks from scene lifecycle interactions, multiplayer RPC simulation, and suite-wide leak detection. Instead of writing ad-hoc fixtures, you match the test problem to pre-built templates.

The catalog includes scripts such as `headless_test_runner.gd` for command-line CI execution, `snapshot_tester.gd` for visual and dictionary regressions, and step-based runners for physics verification.

Mixing GUT and GdUnit4 assertions inside the same test suite is prohibited, which means existing GUT test setups require a clean split.

## Requirements
- Works with: Godot

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-testing-patterns -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-testing-patterns -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-testing-patterns -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install thedivergentai/Game-Dev-Agentic-Skills godot-testing-patterns
```

2. **Manually: put the files in place**
- File: `.github/skills/godot-testing-patterns/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-testing-patterns -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/thedivergentai/Game-Dev-Agentic-Skills --path skills/godot-testing-patterns
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-testing-patterns -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/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-testing-patterns/SKILL.md

## When to use it
- configure headless GdUnit4 runs in CI pipelines
- verify multiplayer RPC calls without live network peers
- prevent flaky physics tests by stepping engine frames
- detect orphan nodes and memory leaks after test suites

## Example prompts
- Set up a GdUnit4 headless runner command for our CI pipeline
- Write an integration test for a Godot scene checking physics collisions
- Create a mock network peer to test RPC calls offline

## Similar
- [godot-gdscript-headless-testing](https://affpapa.org/en/nevibecode/skills/godot-gdscript-headless-testing.md) — skill · 3100 installs
- [godot-export](https://affpapa.org/en/nevibecode/skills/godot-export.md) — skill · 6200 installs
- [godot-mcp-enhanced](https://affpapa.org/en/nevibecode/mcp/godot-mcp-enhanced.md) — MCP server · ★ 103
- [godot-ui](https://affpapa.org/en/nevibecode/skills/godot-ui.md) — skill · 2700 installs
- [godot-best-practices](https://affpapa.org/en/nevibecode/skills/godot-best-practices.md) — skill · 2100 installs
- [godot-asset-generator](https://affpapa.org/en/nevibecode/skills/godot-asset-generator.md) — skill · 1000 installs

From the same set: [thedivergentai/game-dev-agentic-skills](https://affpapa.org/en/nevibecode/by/thedivergentai/game-dev-agentic-skills.md) — 51 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
