test summary formatting

This commit is contained in:
Eric 2024-12-20 16:24:56 +11:00
parent 2ee0146d42
commit 096fc93696
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ proc printOutput(manager: TestManager) =
var successes = 0 var successes = 0
echo "▢=====================================================================▢" echo "▢=====================================================================▢"
echo "| TEST SUMMARY |" echo "| TEST SUMMARY |"
echo "=" echo "|"
for test in manager.tests: for test in manager.tests:
without output =? test.output: without output =? test.output:
echo "| [FATAL] Test '", test.config.name, "' failed to run to completion" echo "| [FATAL] Test '", test.config.name, "' failed to run to completion"
@ -246,7 +246,7 @@ proc printOutput(manager: TestManager) =
echo "| [OK] Test '", test.config.name, "' succeeded" echo "| [OK] Test '", test.config.name, "' succeeded"
inc successes inc successes
echo "| ------------------------------------------------------------------- |" echo "| |"
echo "| PASSING : ", successes, " / ", manager.tests.len echo "| PASSING : ", successes, " / ", manager.tests.len
let totalDuration = manager.timeEnd - manager.timeStart let totalDuration = manager.timeEnd - manager.timeStart
echo "| TOTAL TIME : ", totalDuration echo "| TOTAL TIME : ", totalDuration