File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 925
925
function get_alignment (ts:: DefaultTestSet , depth:: Int )
926
926
# The minimum width at this depth is
927
927
ts_width = 2 * depth + length (ts. description)
928
- # If all passing, no need to look at children
929
- ! ts. anynonpass && return ts_width
928
+ # If not verbose and all passing, no need to look at children
929
+ ! ts. verbose && ! ts . anynonpass && return ts_width
930
930
# Return the maximum of this width and the minimum width
931
931
# for all children (if they exist)
932
932
isempty (ts. results) && return ts_width
Original file line number Diff line number Diff line change @@ -976,17 +976,17 @@ end
976
976
977
977
@testset " verbose option" begin
978
978
expected = """
979
- Test Summary: | Pass Total
980
- Parent | 9 9
981
- Child 1 | 3 3
982
- Child 1.1 | 1 1
983
- Child 1.2 | 1 1
984
- Child 1.3 | 1 1
985
- Child 2 | 3 3
986
- Child 3 | 3 3
987
- Child 3.1 | 1 1
988
- Child 3.2 | 1 1
989
- Child 3.3 | 1 1
979
+ Test Summary: | Pass Total
980
+ Parent | 9 9
981
+ Child 1 | 3 3
982
+ Child 1.1 (long name) | 1 1
983
+ Child 1.2 | 1 1
984
+ Child 1.3 | 1 1
985
+ Child 2 | 3 3
986
+ Child 3 | 3 3
987
+ Child 3.1 | 1 1
988
+ Child 3.2 | 1 1
989
+ Child 3.3 | 1 1
990
990
"""
991
991
992
992
mktemp () do f, _
996
996
997
997
@testset "Parent" verbose = true begin
998
998
@testset "Child 1" verbose = true begin
999
- @testset "Child 1.1" begin
999
+ @testset "Child 1.1 (long name) " begin
1000
1000
@test 1 == 1
1001
1001
end
1002
1002
You can’t perform that action at this time.
0 commit comments