nix-community/nur-combined/godot-testing-patterns
Claude Code and agent skill by nix-community/nur-combined
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Expert blueprint for testing patterns using GUT (Godot Unit Test), integration tests, mock/stub patterns, async testing, and validation techniques. Covers assert patterns, signal testing, and CI/CD integration. Use when implementing tests OR validating game logic. Keywords GUT, unit test, integration test, assert, mock, stub, GutTest, watch_signals, TDD.
Install
npx vskill@latest install nix-community/nur-combined/godot-testing-patternsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as nix-community/nur-combined/godot-testing-patterns.
Testing Patterns
GUT framework, assertion patterns, mocking, and async testing define automated validation.
Available Scripts
basic_unit_test.gd
Minimal GdUnit4 test structure for verifying simple logic and arithmetic.
signal_emission_test.gd
Expert pattern for monitoring and verifying signal emissions in decoupled architectures.
mock_dependency_test.gd
Using Mocks and Doubles to isolate test subjects from external services or databases.
scene_integration_test.gd
Full scene lifecycle testing, verifying node interactions after instantiation.
performance_benchmark_runner.gd
High-precision execution time measurement using microsecond-scale timers.
memory_leak_detector.gd
Automated orphan node detection to catch memory leaks during long-running tests.
parameter_fuzz_tester.gd
Stress testing systems with randomized data ranges to catch edge-case crashes.
wait_for_frame_test.gd
Advanced async testing for logic that spans multiple frames or game ticks.
physics_collision_test.gd
Automated verification of physics layer interactions and collision resolution.
test_data_factory.gd
Centralized data generation patterns for clean, schemas-compliant test objects.
NEVER Do in Testing
- NEVER test implementation details —
assert_eq(player._internal_state, 5)? Private variables = brittle tests. Test PUBLIC behavior, not internals [20]. - NEVER share state between tests — Test 1 modifies global variable, test 2 assumes clean state? Flaky tests. Use
before_each()for fresh setup [21]. - NEVER use sleep() for timing —
await get_tree().create_timer(1.0).timeoutin tests? Slow + unreliable. Use GUT'swait_seconds()OR manual frame stepping [22]. - NEVER skip cleanup in after_each() — Test spawns 100 nodes, doesn't free? Memory leak + slow test suite. ALWAYS free nodes in
after_each()[23]. - NEVER test randomness without seeding —
randi()in test = non-deterministic failure. Useseed(12345)for repeatable tests [24]. - NEVER forget to watch signals —
assert_signal_emitted(obj, "died")withoutwatch_signals? Fails silently. MUST callwatch_signals(obj)first [25]. - NEVER perform tests without an explicit "Definition of Done" — Vague tests like
assert_true(true)provide zero value. Every test should verify a specific requirement. - NEVER rely on editor-only features for CI/CD tests — Headless environments lack Viewports. Ensure tests are
headless-compatible. - NEVER ignore the cost of "Integration Tests" — Testing a whole level is slow. Favor narrow Unit Tests for logic and small Scene Tests for interaction.
- NEVER hardcode file paths in tests — Use
Pathconstants or project-relative strings. If a resource directory moves, your suite shouldn't break. - NEVER test third-party plugins — Trust the library; test YOUR integration of it.
Installation
- Download from AssetLib: "GUT - Godot Unit Test"
- Enable in Project Settings → Plugins
- Create
res://test/directory
Basic Test
Running Tests
Assertion Patterns
Testing Signals
Testing Async
Mock/Stub Patterns
Integration Testing
Manual Testing Checklist
Validation Helpers
Test Organization
Best Practices
1. Test Edge Cases
2. Isolate Tests
3. Test Critical Paths First
Reference
Related
- Master Skill: godot-master
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingrepos/ahmet-cetinkaya/agent-ctrl/profiles/godot/skills/godot-testing-patterns/SKILL.md
Popularity
- Repository stars
- 200
- Repository forks
- 23
- 7-day trend score
- 32
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/nix-community/nur-combined/godot-testing-patterns)