chore: add GUT test framework
This commit is contained in:
9
addons/gut/templates/.gutconfig.json
Normal file
9
addons/gut/templates/.gutconfig.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"dirs":["res://test/unit/", "res://test/integration/"],
|
||||
"should_maximize":false,
|
||||
"should_exit":true,
|
||||
"ignore_pause":true,
|
||||
"log": 2,
|
||||
"opacity":100,
|
||||
"include_subdirs":false
|
||||
}
|
||||
197
addons/gut/templates/singleton_list.txt
Normal file
197
addons/gut/templates/singleton_list.txt
Normal file
@@ -0,0 +1,197 @@
|
||||
# Copy the Properties section from class_@globalscope.html and paste it in here.
|
||||
# Then run create_singleton_list.gd to generate documentation and code for
|
||||
# all listed singletons.
|
||||
AudioServer
|
||||
|
||||
|
||||
AudioServer
|
||||
|
||||
CameraServer
|
||||
|
||||
|
||||
CameraServer
|
||||
|
||||
ClassDB
|
||||
|
||||
|
||||
ClassDB
|
||||
|
||||
DisplayServer
|
||||
|
||||
|
||||
DisplayServer
|
||||
|
||||
EditorInterface
|
||||
|
||||
|
||||
EditorInterface
|
||||
|
||||
Engine
|
||||
|
||||
|
||||
Engine
|
||||
|
||||
EngineDebugger
|
||||
|
||||
|
||||
EngineDebugger
|
||||
|
||||
GDExtensionManager
|
||||
|
||||
|
||||
GDExtensionManager
|
||||
|
||||
Geometry2D
|
||||
|
||||
|
||||
Geometry2D
|
||||
|
||||
Geometry3D
|
||||
|
||||
|
||||
Geometry3D
|
||||
|
||||
IP
|
||||
|
||||
|
||||
IP
|
||||
|
||||
Input
|
||||
|
||||
|
||||
Input
|
||||
|
||||
InputMap
|
||||
|
||||
|
||||
InputMap
|
||||
|
||||
JavaClassWrapper
|
||||
|
||||
|
||||
JavaClassWrapper
|
||||
|
||||
JavaScriptBridge
|
||||
|
||||
|
||||
JavaScriptBridge
|
||||
|
||||
Marshalls
|
||||
|
||||
|
||||
Marshalls
|
||||
|
||||
NativeMenu
|
||||
|
||||
|
||||
NativeMenu
|
||||
|
||||
NavigationMeshGenerator
|
||||
|
||||
|
||||
NavigationMeshGenerator
|
||||
|
||||
NavigationServer2D
|
||||
|
||||
|
||||
NavigationServer2D
|
||||
|
||||
NavigationServer2DManager
|
||||
|
||||
|
||||
NavigationServer2DManager
|
||||
|
||||
NavigationServer3D
|
||||
|
||||
|
||||
NavigationServer3D
|
||||
|
||||
NavigationServer3DManager
|
||||
|
||||
|
||||
NavigationServer3DManager
|
||||
|
||||
OS
|
||||
|
||||
|
||||
OS
|
||||
|
||||
Performance
|
||||
|
||||
|
||||
Performance
|
||||
|
||||
PhysicsServer2D
|
||||
|
||||
|
||||
PhysicsServer2D
|
||||
|
||||
PhysicsServer2DManager
|
||||
|
||||
|
||||
PhysicsServer2DManager
|
||||
|
||||
PhysicsServer3D
|
||||
|
||||
|
||||
PhysicsServer3D
|
||||
|
||||
PhysicsServer3DManager
|
||||
|
||||
|
||||
PhysicsServer3DManager
|
||||
|
||||
ProjectSettings
|
||||
|
||||
|
||||
ProjectSettings
|
||||
|
||||
RenderingServer
|
||||
|
||||
|
||||
RenderingServer
|
||||
|
||||
ResourceLoader
|
||||
|
||||
|
||||
ResourceLoader
|
||||
|
||||
ResourceSaver
|
||||
|
||||
|
||||
ResourceSaver
|
||||
|
||||
ResourceUID
|
||||
|
||||
|
||||
ResourceUID
|
||||
|
||||
TextServerManager
|
||||
|
||||
|
||||
TextServerManager
|
||||
|
||||
ThemeDB
|
||||
|
||||
|
||||
ThemeDB
|
||||
|
||||
Time
|
||||
|
||||
|
||||
Time
|
||||
|
||||
TranslationServer
|
||||
|
||||
|
||||
TranslationServer
|
||||
|
||||
WorkerThreadPool
|
||||
|
||||
|
||||
WorkerThreadPool
|
||||
|
||||
XRServer
|
||||
|
||||
|
||||
XRServer
|
||||
23
addons/gut/templates/test_.gd
Normal file
23
addons/gut/templates/test_.gd
Normal file
@@ -0,0 +1,23 @@
|
||||
extends "res://addons/gut/test.gd"
|
||||
|
||||
|
||||
# #############
|
||||
# Seutp/Teardown
|
||||
# #############
|
||||
func before_all():
|
||||
pass
|
||||
|
||||
func before_each():
|
||||
pass
|
||||
|
||||
func after_each():
|
||||
pass
|
||||
|
||||
func after_all():
|
||||
pass
|
||||
|
||||
# #############
|
||||
# Tests
|
||||
# #############
|
||||
func test_pending():
|
||||
pending()
|
||||
1
addons/gut/templates/test_.gd.uid
Normal file
1
addons/gut/templates/test_.gd.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://38dxn5vfooo2
|
||||
Reference in New Issue
Block a user