chore: add GUT test framework

This commit is contained in:
xiaji
2026-05-29 09:16:10 +08:00
parent 5741ba1dc0
commit 07fc763413
808 changed files with 76903 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
extends 'res://addons/gut/hook_script.gd'
var ResultExporter = load('res://addons/gut/result_exporter.gd')
func run(): # called automatically by Gut
var exporter = ResultExporter.new()
var filename = 'user://logs/gut_results'
filename += str("_", Time.get_unix_time_from_system(), ".json")
var f_result = exporter.write_json_file(gut, filename)
if(f_result == OK):
gut.p(str("Results saved to ", filename))