Add "Running suite" message

This commit is contained in:
JeremyStar™ 2024-04-07 21:13:10 +02:00
parent 07bda0c255
commit b96812fbad
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D

View file

@ -111,6 +111,7 @@ func _ready() -> void:
# Runs a test suite
func run_suite(suite: String) -> void:
linfo("Running suite \"" + suite + "\"")
# Load test suite
var suite_node: BessereTestsTest = BessereTestsTest.new()
suite_node.set_script(load(config_test_directory + "/" + suite + ".gd"))
@ -173,8 +174,7 @@ func lcrash(message: String, origin: String = "Bessere Tests") -> void:
await terminate(69)
# Log message sanitization
func lsanitize(message: String) -> String:
return message.replace("[", "[lb]").replace("]", "[rb]").replace("[lb[rb]", "[lb]").replace("\n", "\\n")
func lsanitize(message: String) -> String: return message.replace("[", "[lb]").replace("]", "[rb]").replace("[lb[rb]", "[lb]").replace("\n", "\\n")
# Terminates the engine
func terminate(exit_code: int = 0) -> void: