Logo di Godot Testing Debug

Godot Testing Debug

Community
EL4CTEO
godot-testing-debug

Test and debug Godot 4.7 projects - GdUnit4 (GDScript) and gdUnit4Net (C#) with verified versions, unit/scene-runner tests, mocks, signal asserts, input simulation, headless runs as JSON, debugger, breakpoints, custom Logger, backtraces, reading errors. Use when writing or running tests, or tracking down bugs and crashes.

Panoramica

Pubblicato daEL4CTEO
Repositorygodot-skills
Nome della skillgodot-testing-debug
Stelle
60
Fork
6
File inclusi
3
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • File inclusi: 3

    Script, template e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da EL4CTEO su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Godot Testing Debug in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-testing-debug
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EL4CTEO/godot-skills.git /tmp/godot-skills
mkdir -p .claude/skills
cp -r /tmp/godot-skills/skills/godot-testing-debug .claude/skills/godot-testing-debug
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Godot Testing Debug in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Godot Testing Debug non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Godot Testing Debug non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

Testing and debugging (4.7)

Run tests: python scripts/test_run.py [--gd|--cs] [-a res://test/x] [--filter expr] returns {gd: {total, failed, failures: [{test, file, line, msg}]}, cs: {...}}. It imports first, runs headless, and parses the JUnit/console results. Before tests, compile: ../godot-gdscript/scripts/gd_check.py and ../godot-csharp/scripts/cs_build.py. Smoke-run the game with ../godot-core/scripts/run_godot.py smoke.

GDScript: GdUnit4 (verified 6.2.2 on 4.7.2)

  • Install: copy addons/gdUnit4 from the GitHub release (github.com/godot-gdunit-labs/gdUnit4, tag v6.2.x) and enable the plugin. Tests go in res://test/, with names ending in _test.gd.
  • A suite extends GdUnitTestSuite. Tests are func test_*(). Hooks: before(), after() (per suite), before_test(), after_test().
  • Assertions: assert_int/float/str/bool/vector/array/dict/object(x).is_equal(...), assert_that(x), assert_signal(obj).is_emitted("died") (after monitor_signals(obj)), assert_error(func() -> void: ...), and await assert_func(obj, "is_ready").is_true().
  • Memory: wrap created objects in auto_free(...). The report flags orphan nodes, so treat them as bugs.
  • Doubles: mock(Class) + do_return(v).on(m).method(), spy(instance), verify(m, times).method(args), any_int() and friends.
  • Integration: var runner := scene_runner("res://player.tscn"), then runner.simulate_action_pressed("jump"), await runner.simulate_frames(30), runner.simulate_key_pressed(KEY_SPACE), await runner.await_signal("landed"), runner.invoke("method") and runner.scene().
  • CLI (what test_run.py calls): godot --headless --path . -s -d res://addons/gdUnit4/bin/GdUnitCmdTool.gd --ignoreHeadlessMode -c -a res://test. Exit code 0 means pass and 100 means failures. If you launch it yourself, close stdin (< /dev/null): with -d, a runtime error in a test otherwise waits forever at the debug> prompt (test_run.py already does this). Reports are JUnit XML under the -rd directory.

C#: gdUnit4Net (verified with Godot.NET.Sdk 4.7.2, .NET 10 SDK)

  • Add to the game csproj: Microsoft.NET.Test.Sdk 18.x, gdUnit4.api 5.1.0-rc5 (adapter 3.1.1 requires ≥5.1.0-rc5; 5.0.0 fails restore with NU1605), gdUnit4.test.adapter 3.1.1, gdUnit4.analyzers 1.0.0, plus <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>.
  • Add a .runsettings with <GdUnit4><Parameters>--headless</Parameters><GodotConnectTimeout>60000</GodotConnectTimeout></GdUnit4>. Without it, Godot-runtime tests time out connecting. Run with GODOT_BIN=<godot exe> dotnet test --settings .runsettings.
  • [TestSuite] classes, [TestCase] methods, [Before]/[After]/[BeforeTest]/[AfterTest], [DataPoint(nameof(Cases))] for parameterized tests. Use using static GdUnit4.Assertions; → AssertThat(x).IsEqual(y), AutoFree(node).
  • [RequireGodotRuntime] is required on any test that touches Godot types, including Mathf, nodes and resources. The analyzer reports GdUnit0501 otherwise. Pure C# tests run without the engine and much faster.
  • Scenes: ISceneRunner.Load("res://x.tscn") → SimulateFrames, SimulateActionPressed, AwaitSignal, Invoke.

What to test

Pure logic (damage, inventory, save migration) as fast unit tests. Scenes through scene runners for controller feel, UI flows and signal wiring. Every bug fix gets a regression test. Keep suites fast, because slow suites stop getting run.

Debugging

  • Run from the editor (F5) for the full debugger: errors with stack traces, breakpoints (or a breakpoint statement), step in/out (Step Out arrived in 4.6), the Remote scene tree (live node and property inspection while playing), Profiler, Monitors and ObjectDB snapshots (4.6).
  • Logging: print, print_rich("[color=yellow]..."), print_debug (adds file and line), push_warning/push_error (shown in the debugger with a stack, and non-fatal), printerr. assert(cond, "msg") only runs in debug builds, so never put side effects inside it.
  • File logs: debug/file_logging/enable_file_logging (on by default for desktop, user://logs/godot.log). Find user:// with OS.get_user_data_dir().
  • Custom Logger (4.5+): subclass it, override _log_error/_log_message, and register with OS.add_logger(). Use it for in-game bug reports with script_backtraces. Turn on debug/settings/gdscript/always_track_call_stacks for release-build backtraces. Engine.capture_script_backtraces() captures one on demand.
  • CLI: -d (stdout debugger), --verbose, --debug-collisions/--debug-navigation, and --remote-debug tcp://host:6007 to attach a running build to the editor.
  • C#: attach an IDE debugger to the game process (Rider and VS Code C# Dev Kit can launch Godot with --path). Exceptions are logged, not fatal, so watch the Output panel.

Reading errors fast

res://file.gd:LINE points at the line. "null instance" means a bad node path or something used before _ready. "previously freed" means an await or callback outlived its node. A "Parse Error" or "Compile Error" stops the script from loading, so everything using it fails, and you fix the first error first. "Condition "!is_inside_tree()" is true" means a tree API was called on a node that isn't in the tree yet. Engine C++ file references (scene/main/node.cpp:123) still mean your call was wrong, so read the stack.

GdUnit suites (unit, mocks, signals, scene runner), C# tests, in-game Logger (compiled by the tests): references/patterns.md

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA Godot Testing Debug?

Test and debug Godot 4.7 projects - GdUnit4 (GDScript) and gdUnit4Net (C#) with verified versions, unit/scene-runner tests, mocks, signal asserts, input simulation, headless runs as JSON, debugger, breakpoints, custom Logger, backtraces, reading errors. Use when writing or running tests, or tracking down bugs and crashes.

Perché usare Godot Testing Debug su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Godot Testing Debug è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Godot Testing Debug in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/EL4CTEO/godot-skills/tree/main/skills/godot-testing-debug. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Godot Testing Debug?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Godot Testing Debug?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Godot Testing Debug: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Godot Testing Debug è gratuita?

Sì. È pubblicata su GitHub da EL4CTEO con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇