diff --git a/internal/app/table_tests.go b/internal/app/table_tests.go index 309a984..bc38bd8 100644 --- a/internal/app/table_tests.go +++ b/internal/app/table_tests.go @@ -208,7 +208,12 @@ func shortenTestName(s string, trim bool, maxLength int) string { ss := strings.Split(s, "/") testName.WriteString(ss[0] + "\n") for i, s := range ss[1:] { - testName.WriteString(" /" + s) + testName.WriteString(" /") + for len(s) > maxLength { + testName.WriteString(s[:maxLength-2] + " …\n ") + s = s[maxLength-2:] + } + testName.WriteString(s) if i != len(ss[1:])-1 { testName.WriteString("\n") }