Skip to content

Commit

Permalink
spacing in jive_print_counts
Browse files Browse the repository at this point in the history
  • Loading branch information
wookay committed Jun 13, 2022
1 parent 500aa4f commit 148d79e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -319,36 +319,37 @@ function jive_print_counts(io::IO, ts::JiveTestSet, tc)
skipped = tc.skipped + tc.c_skipped

printed = false
spacing = " "
if passes > 0
print(io, repeat(' ', 4))
printstyled(io, spacing)
printstyled(io, "Pass:", " "; bold=true, color=:green)
printstyled(io, passes, color=:green)
printed = true
end

if fails > 0
print(io, repeat(' ', 4))
printstyled(io, spacing)
printstyled(io, "Fail:", " "; bold=true, color=Base.error_color())
printstyled(io, fails, color=Base.error_color())
printed = true
end

if errors > 0
print(io, repeat(' ', 4))
printstyled(io, spacing)
printstyled(io, "Error:", " "; bold=true, color=Base.error_color())
printstyled(io, errors, color=Base.error_color())
printed = true
end

if broken > 0
print(io, repeat(' ', 4))
printstyled(io, spacing)
printstyled(io, "Broken:", " "; bold=true, color=Base.warn_color())
printstyled(io, broken, color=Base.warn_color())
printed = true
end

if skipped > 0
print(io, repeat(' ', 4))
printstyled(io, spacing)
printstyled(io, "Skip:", " "; bold=true, color=Base.warn_color())
printstyled(io, skipped, color=Base.warn_color())
printed = true
Expand Down

0 comments on commit 148d79e

Please sign in to comment.