Skip to content

Commit

Permalink
TEST: added output of all failed tests at the end of test run
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Jun 6, 2019
1 parent 1c93c7c commit 6370271
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/tests/quick-test-module.r3
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ qt-red-only: false
;-state
was-quiet: false

failes: copy ""



qt-init-group: does [
Expand All @@ -66,6 +68,7 @@ qt-init-run: does [
qt-run-passes:
qt-run-failures:
qt-run-incompatible: 0
clear failes
qt-init-group
]

Expand Down Expand Up @@ -137,8 +140,10 @@ assert: func [
prin "===group=== "
print qt-group-name
qt-group-name-not-printed: false
append failes ajoin ["^/^/In group: " qt-group-name]
]
]
append failes ajoin ["^/FAIL: " qt-test-name " (" qt-test-assert #")"]
prin "--test-- "
prin [qt-test-name qt-test-assert]
print either qt-red-only [
Expand Down Expand Up @@ -220,6 +225,7 @@ print-totals: func [
print incompat
if failures <> 0 [
print "****************TEST FAILURES****************"
print failes
]
]

Expand Down

0 comments on commit 6370271

Please sign in to comment.