mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-01 05:27:18 +00:00
test summary formatting
This commit is contained in:
parent
3212c3cf30
commit
82e0d81d61
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user