Add "Running suite" message
This commit is contained in:
parent
07bda0c255
commit
b96812fbad
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue