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 # Runs a test suite
func run_suite(suite: String) -> void: func run_suite(suite: String) -> void:
linfo("Running suite \"" + suite + "\"")
# Load test suite # Load test suite
var suite_node: BessereTestsTest = BessereTestsTest.new() var suite_node: BessereTestsTest = BessereTestsTest.new()
suite_node.set_script(load(config_test_directory + "/" + suite + ".gd")) 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) await terminate(69)
# Log message sanitization # Log message sanitization
func lsanitize(message: String) -> String: func lsanitize(message: String) -> String: return message.replace("[", "[lb]").replace("]", "[rb]").replace("[lb[rb]", "[lb]").replace("\n", "\\n")
return message.replace("[", "[lb]").replace("]", "[rb]").replace("[lb[rb]", "[lb]").replace("\n", "\\n")
# Terminates the engine # Terminates the engine
func terminate(exit_code: int = 0) -> void: func terminate(exit_code: int = 0) -> void: