Make newlines a bit better
This commit is contained in:
parent
e27e29b3c8
commit
6a6486e7f2
1 changed files with 3 additions and 2 deletions
|
@ -50,7 +50,7 @@ func _ready() -> void:
|
||||||
for suite in DirAccess.get_files_at(config_test_directory): await run_suite(suite.replace(".gd", ""))
|
for suite in DirAccess.get_files_at(config_test_directory): await run_suite(suite.replace(".gd", ""))
|
||||||
|
|
||||||
# Print test results
|
# Print test results
|
||||||
print() # Newline
|
lresu("")
|
||||||
lresu("Test results:")
|
lresu("Test results:")
|
||||||
for test in results:
|
for test in results:
|
||||||
stats_all += 1
|
stats_all += 1
|
||||||
|
@ -75,7 +75,7 @@ func _ready() -> void:
|
||||||
stats_unknown += 1
|
stats_unknown += 1
|
||||||
|
|
||||||
# Print statistics
|
# Print statistics
|
||||||
print() # Newline
|
lresu("")
|
||||||
lresu("Test statistics:")
|
lresu("Test statistics:")
|
||||||
if stats_all == 0: lresu(" -> [color=white]No tests were executed[/color]")
|
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")
|
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]")
|
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_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!)")
|
if stats_unknown != 0: lerror(" -> " + str(stats_unknown) + " tests have an unknown status (fix that!)")
|
||||||
|
lresu("")
|
||||||
|
|
||||||
# Shutdown
|
# Shutdown
|
||||||
terminate()
|
terminate()
|
||||||
|
|
Loading…
Reference in a new issue