Skip to content

Commit e04f0e1

Browse files
IanButterworthKristofferC
authored andcommitted
Fix test report alignment (#56789)
(cherry picked from commit 32ea18e)
1 parent 12d2286 commit e04f0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/Test/src/Test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@ function print_test_results(ts::DefaultTestSet, depth_pad=0)
11351135
duration_width = max(length("Time"), length(duration))
11361136
# Calculate the alignment of the test result counts by
11371137
# recursively walking the tree of test sets
1138-
align = max(get_alignment(ts, 0), length("Test Summary:"))
1138+
align = max(get_alignment(ts, depth_pad), textwidth("Test Summary:"))
11391139
# Print the outer test set header once
11401140
pad = total == 0 ? "" : " "
11411141
printstyled(rpad("Test Summary:", align, " "), " |", pad; bold=true)

0 commit comments

Comments
 (0)