making sure the issue comes from GDUnit addon folder
All checks were successful
Create tag and build when new code gets to main / Export (push) Successful in 7m6s

This commit is contained in:
2026-01-26 08:51:14 +01:00
parent 51907a1f01
commit 72bf3d4cc5
464 changed files with 6493 additions and 0 deletions

View File

@@ -0,0 +1,74 @@
class_name GdUnitReport
extends Resource
# report type
enum {
SUCCESS,
WARN,
FAILURE,
ORPHAN,
TERMINATED,
INTERUPTED,
ABORT,
SKIPPED,
}
var _type :int
var _line_number :int
var _message :String
func create(p_type :int, p_line_number :int, p_message :String) -> GdUnitReport:
_type = p_type
_line_number = p_line_number
_message = p_message
return self
func type() -> int:
return _type
func line_number() -> int:
return _line_number
func message() -> String:
return _message
func is_skipped() -> bool:
return _type == SKIPPED
func is_warning() -> bool:
return _type == WARN
func is_failure() -> bool:
return _type == FAILURE
func is_error() -> bool:
return _type == TERMINATED or _type == INTERUPTED or _type == ABORT
func _to_string() -> String:
if _line_number == -1:
return "[color=green]line [/color][color=aqua]<n/a>:[/color] %s" % [_message]
return "[color=green]line [/color][color=aqua]%d:[/color] %s" % [_line_number, _message]
func serialize() -> Dictionary:
return {
"type" :_type,
"line_number" :_line_number,
"message" :_message
}
func deserialize(serialized :Dictionary) -> GdUnitReport:
_type = serialized["type"]
_line_number = serialized["line_number"]
_message = serialized["message"]
return self