测试与安全

godot-testing-patterns

thedivergentai/…c-skills

Expert testing decision trees for GdUnit4: unit vs scene vs CI gates, headless runners, snapshots, and mock networks. Use when choosing test layers, wiring CI, or validating signals/physics without beginner assert catalogs. Keywords: GdUnit4, GdUnitTestSuite, headless CI, snapshot test, mock network, scene integration test, TDD.

  • 599 次安装
  • 908 星标
  • 收录于

安装命令

npx skills add https://github.com/thedivergentai/game-dev-agentic-skills --skill godot-testing-patterns

SKILL.md

Decision Tree → Scripts

Need Choice Script (MANDATORY when chosen)
Pure logic / no tree Unit basic_unit_test.gd, mock_dependency_test.gd, test_data_factory.gd
Node interaction after instantiate Scene integration scene_integration_test.gd, integration_test_base.gd
Signal contracts Unit or scene signal_emission_test.gd
Multi-frame / physics step Async scene wait_for_frame_test.gd, physics_collision_test.gd
Flaky physics / timing races Frame step gate MANDATORY wait_for_frame_test.gd — never wall-clock sleep
CI / no display Headless gate MANDATORY headless_test_runner.gd
Save/UI regression Snapshot MANDATORY snapshot_tester.gd
RPC without live peers Mock network MANDATORY mock_network_provider.gd
Perf budget in CI Benchmark gate performance_benchmark_runner.gd
Orphans after suite Leak detect memory_leak_detector.gd
Edge input space Fuzz parameter_fuzz_tester.gd

Do NOT Load assert-catalog tutorials or manual gameplay checklists into context — pick a row, read the script, implement.

MANDATORY Triggers