Skip to content
项目

关于

Godot 单元测试。Godot 游戏引擎的单元测试工具。

游戏与模拟器

这些数字如何统计

可以做什么

  • Simple install via the Asset Library
  • A plethora of asserts and utility methods to help make your tests simple and concise
  • Support for Inner Test Classes to give your tests some extra context and maintainability
  • Doubling: Full and Partial, Stubbing, Spies

实测星标增长

24小时
0
7天
+7
15天
+18
1个月
+30

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

gut logo

GUT

GUT (Godot Unit Test) is a unit testing framework for the Godot Engine. It allows you to write tests for your gdscript in gdscript.

GUT versions 9.x are for Godot 4.x.
GUT versions 7.x (currently 7.4.2) are for Godot 3.x.

Support

If you'd like to support GUT development you can buy me a coffee.

Wiki

Documentation is hosted at https://gut.readthedocs.io/, you can find release-specific links below.

Version Links

There are only two versions of GUT in the Asset Library (one for Godot 3 and one for Godot 4). GUT will not appear in the Asset Library if your current version of Godot is less than the required version of GUT in the Asset Library.

You can download/clone earlier versions of GUT using the links below.

GUT Version Valid Godot Version
9.7.1
(godot_4_7 branch)
4.7.x repo download wiki
Main Branch 4.6.x download wiki
9.6.1 4.6.x repo download Asset Library wiki
9.5.0 4.5.x repo download wiki
9.4.0 4.3.x - 4.4.x repo download wiki
9.3.0 4.2.x repo download wiki
9.1.1 4.1.x repo download
9.0.1 4.0.x repo download
7.4.3 3.5.x repo download Asset Library wiki

To install from the zip link:

  • Download the zip and extract it
  • Put the addons/gut directory into your project.
  • Enable the GUT plugin.

You will need to relaunch Godot.

Features

Panel

Getting Started

VSCode Extension

Run your tests directly from the VSCode Editor. Search VSCode extensions for "gut-extension". The plugin has commands to run your entire test suite, a single test script or a single test.

Thanks for using GUT. If you'd like to support me you can buy me a coffee.

License

Gut is provided under the MIT license. License is in addons/gut/LICENSE.md.

探索相关项目

加载中…