Skip to content

Commit

Permalink
Merge pull request #942 from dpk/newlines-in-verbose-test-output
Browse files Browse the repository at this point in the history
`(chibi test)`: Put newlines after test results etc in verbose mode
  • Loading branch information
ashinn authored Nov 7, 2023
2 parents fe93067 + a277a5d commit af41e2b
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/chibi/test.scm
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,8 @@
(if (not (eq? status 'ERROR)) (display " ")) ; pad
(display (test-status-message status))
(display "]")
(test-print-failure indent status info))
(test-print-failure indent status info)
(newline))
((eq? status 'SKIP))
(else
(display (test-status-code status))
Expand Down Expand Up @@ -816,7 +817,8 @@
(display (plural " subgroup" subgroups-pass))
(display " passed.")))
(when (test-group-ref group 'verbose)
(display (test-group-line group #f)))
(display (test-group-line group #f))
(newline))
(cond
((test-group-ref group 'parent)
=> (lambda (parent)
Expand All @@ -830,8 +832,11 @@

(define test-default-group-reporter
(case-lambda
((group) (close-group group))
((group parent) (display (test-group-line group 'open)))))
((group)
(close-group group))
((group parent)
(display (test-group-line group 'open))
(newline))))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; parameters
Expand Down

0 comments on commit af41e2b

Please sign in to comment.