gdUnit4 Test Writer

Generate gdUnit4 tests for GDScript files with assertions and signal testing.

11|Updated Nov 29, 2025
One-click install
npx skills add https://github.com/minami110/claude-godot-tools --skill gdunit4-test-writer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gdUnit4 Test Writer
Source: https://github.com/minami110/claude-godot-tools/tree/main/gdunit4-toolkit/skills/gdunit4-test-writer
Command: npx skills add https://github.com/minami110/claude-godot-tools --skill gdunit4-test-writer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you author robust gdUnit4 tests by providing type-specific assertions, signal testing guidance, and a scene runner workflow.

Core Features & Use Cases

  • Template-based test creation for gdUnit4 test files in res://tests/
  • Type-specific assertions guidance for clear, actionable tests
  • References to test structure, signals, and scene runner workflows to strengthen test quality

Quick Start

Create a test file in res://tests/test_example.gd using the template described in this skill, then validate and run through the recommended test workflow.

Frequently Asked Questions about gdUnit4 Test Writer

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

FAQPage Schema
How do I write GDScript tests with gdUnit4 assertions?

gdUnit4 tests use type-specific assertions to verify GDScript code behavior. Create test files in res://tests/ with test_*.gd naming, then apply assertions like assert_that() and assert_signal() to validate expected outcomes. This Skill provides templates and guidance for structuring these tests correctly.

Can I test GDScript signals with gdUnit4?

Yes, gdUnit4 supports signal testing through dedicated assertion methods. This Skill guides you through signal-specific test patterns, helping you verify that signals emit correctly and carry the expected data within your test workflow.

What's the proper structure for a gdUnit4 test file?

gdUnit4 tests follow a standard structure: place files in res://tests/, use test_*.gd naming, import the gdUnit4 library, and organize assertions with clear, descriptive names. This Skill provides templates that enforce this structure and best practices for readable, maintainable tests.

How do I use scene runner in gdUnit4 tests?

Scene runner workflows in gdUnit4 let you test scenes in isolation by loading and interacting with them during test execution. This Skill covers scene runner integration patterns, helping you verify scene behavior and node interactions within your test suite.

Do I need specific GDScript knowledge to write gdUnit4 tests?

Yes, you should understand GDScript syntax and the code you're testing. This Skill assumes GDScript familiarity and focuses on applying gdUnit4-specific assertions and test patterns, not teaching the language itself.

What happens after I write and validate gdUnit4 tests?

After authoring tests with gdUnit4, validate them using gdscript-validate verification, then run the tests through Godot's test runner to confirm they pass. This Skill coordinates test creation with validation and execution workflows.