Skip to content

Commit

Permalink
fix test report alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
IanButterworth committed Dec 10, 2024
1 parent e0656ac commit ac50f58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stdlib/Test/src/Test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,8 @@ function print_test_results(ts::AbstractTestSet, depth_pad=0)
duration_width = max(textwidth("Time"), textwidth(tc.duration))
# Calculate the alignment of the test result counts by
# recursively walking the tree of test sets
align = max(get_alignment(ts, 0), textwidth("Test Summary:"))
# start at depth 1 because even the first row will be indented
align = max(get_alignment(ts, 1), textwidth("Test Summary:"))
# Print the outer test set header once
printstyled(rpad("Test Summary:", align, " "), " |", " "; bold=true)
if pass_width > 0
Expand Down

0 comments on commit ac50f58

Please sign in to comment.