Make newlines a bit better

This commit is contained in:
JeremyStar™ 2024-03-28 17:44:10 +01:00
parent e27e29b3c8
commit 6a6486e7f2

View file

@ -50,7 +50,7 @@ func _ready() -> void:
for suite in DirAccess.get_files_at(config_test_directory): await run_suite(suite.replace(".gd", ""))
# Print test results
print() # Newline
lresu("")
lresu("Test results:")
for test in results:
stats_all += 1
@ -75,7 +75,7 @@ func _ready() -> void:
stats_unknown += 1
# Print statistics
print() # Newline
lresu("")
lresu("Test statistics:")
if stats_all == 0: lresu(" -> [color=white]No tests were executed[/color]")
elif stats_all == stats_ok: lresu(" -> [color=green]All " + str(stats_all) + " tests have passed")
@ -86,6 +86,7 @@ func _ready() -> void:
lresu(" -> [color=gray]" + str(stats_skip) + " tests were skipped[/color]")
if stats_forgot != 0: lerror(" -> " + str(stats_forgot) + " tests did not set their status (fix that!)")
if stats_unknown != 0: lerror(" -> " + str(stats_unknown) + " tests have an unknown status (fix that!)")
lresu("")
# Shutdown
terminate()