What problem does it solve?
This Skill eliminates the repetitive and time-consuming task of manually creating boilerplate test files for GDScript classes. It ensures consistent test structure and gdUnit4 compliance, freeing developers to focus on writing actual test logic.
Core Features & Use Cases
- Automated Test Stub Generation: Parses GDScript files and generates gdUnit4-compliant test files with appropriate class and method structures.
- Class-Type Specific Strategies: Adapts test generation based on class inheritance (e.g.,
Resource, Node, BehaviorTree classes).
- Structured Output & Validation: Provides JSON-formatted results, including validation reports and error recovery suggestions.
- Use Case: After developing a new GDScript class, use this skill to quickly generate a ready-to-use test file. This ensures your tests follow best practices and are immediately runnable within the gdUnit4 framework.
Quick Start
Use the generate-test-stub skill to create a test file for 'scripts/player_character.gd' and save it to 'tests/test_player_character.gd'.