@@ -82,8 +82,7 @@ func generateShortTestResultsTable(
8282) [][]string {
8383 p := message .NewPrinter (language .English )
8484
85- // Define the columns you want
86- headers := []string {"Name" , "Path" , "Runs" , "Failures" , "Code Owners" }
85+ headers := []string {"Name" , "Ever Passed" , "Runs" , "Successes" , "Code Owners" , "Path" }
8786
8887 // Optionally format the headers for Markdown
8988 if markdown {
@@ -101,18 +100,25 @@ func generateShortTestResultsTable(
101100 continue
102101 }
103102
103+ // Determine whether the test has passed at least once
104+ passed := "NO"
105+ if r .Successes > 0 {
106+ passed = "YES"
107+ }
108+
104109 // Format the Code Owners
105110 owners := "Unknown"
106111 if len (r .CodeOwners ) > 0 {
107112 owners = strings .Join (r .CodeOwners , ", " )
108113 }
109114
110115 row := []string {
111- r .TestName ,
112- r .TestPath ,
113- p .Sprintf ("%d" , r .Runs ),
114- p .Sprintf ("%d" , r .Failures ),
115- owners ,
116+ r .TestName , // "Name"
117+ passed , // "Passed"
118+ p .Sprintf ("%d" , r .Runs ), // "Runs"
119+ p .Sprintf ("%d" , r .Successes ), // "Passes"
120+ owners , // "Code Owners"
121+ r .TestPath , // "Path"
116122 }
117123
118124 table = append (table , row )
0 commit comments