chore(tooling): install GUT v9.6.0 test framework
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
22
addons/gut/gui/run_from_editor.gd
Normal file
22
addons/gut/gui/run_from_editor.gd
Normal file
@@ -0,0 +1,22 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# This is the entry point when running tests from the editor.
|
||||
#
|
||||
# This script should conform to, or ignore, the strictest warning settings.
|
||||
# ------------------------------------------------------------------------------
|
||||
extends Node2D
|
||||
|
||||
var GutLoader : Object
|
||||
|
||||
func _init() -> void:
|
||||
GutLoader = load("res://addons/gut/gut_loader.gd")
|
||||
|
||||
|
||||
@warning_ignore("unsafe_method_access")
|
||||
func _ready() -> void:
|
||||
_post_ready.call_deferred()
|
||||
|
||||
|
||||
func _post_ready():
|
||||
var runner : Node = load("res://addons/gut/gui/GutRunner.tscn").instantiate()
|
||||
get_tree().root.add_child(runner)
|
||||
runner.run_from_editor()
|
||||
Reference in New Issue
Block a user