File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ var RunTestsCmd = &cobra.Command{
159159 os .Exit (ErrorExitCode )
160160 }
161161
162- fmt .Printf ("\n All Rerun Tests:\n " )
162+ fmt .Printf ("\n All Tests That Were Rerun :\n " )
163163 reports .PrintTestResultsTable (os .Stdout , rerunReport .Results , false , false )
164164 fmt .Println ()
165165
@@ -178,7 +178,7 @@ var RunTestsCmd = &cobra.Command{
178178 })
179179
180180 if len (failedAfterRerun ) > 0 {
181- fmt .Printf ("\n Tests That Failed All %d Reruns :\n " , rerunFailedCount )
181+ fmt .Printf ("\n Tests That Have 0 Success Runs :\n " )
182182 reports .PrintTestResultsTable (os .Stdout , failedAfterRerun , false , false )
183183 fmt .Println ()
184184
Original file line number Diff line number Diff line change @@ -48,6 +48,12 @@ func (testReport *TestReport) SaveToFile(outputPath string) error {
4848}
4949
5050func (tr * TestReport ) PrintGotestsumOutput (format string ) error {
51+ if len (tr .JSONOutputPaths ) == 0 {
52+ fmt .Printf ("No JSON output paths found in test report\n " )
53+ return nil
54+ }
55+
56+ fmt .Println ("---------------------" )
5157 for _ , path := range tr .JSONOutputPaths {
5258 cmdStr := fmt .Sprintf ("cat %q | gotestsum --raw-command --format %q -- cat" , path , format )
5359 cmd := exec .Command ("bash" , "-c" , cmdStr )
You can’t perform that action at this time.
0 commit comments