Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -996,13 +996,15 @@ The commands work as following:
log.WithFields(log.Fields{"error": err}).Info("Failed running Xcuitest")
}

log.Info(fmt.Printf("%+v", testResults))
fmt.Println(convertToJSONString(testResults))
} else {
config.Listener = testmanagerd.NewTestListener(io.Discard, io.Discard, os.TempDir())
_, err := testmanagerd.RunTestWithConfig(context.TODO(), config)
testResults, err := testmanagerd.RunTestWithConfig(context.TODO(), config)
if err != nil {
log.WithFields(log.Fields{"error": err}).Info("Failed running Xcuitest")
}

fmt.Println(convertToJSONString(testResults))
}
return
}
Expand All @@ -1028,13 +1030,15 @@ The commands work as following:
log.WithFields(log.Fields{"error": err}).Info("Failed running Xctest")
}

log.Info(fmt.Printf("%+v", testResults))
fmt.Println(convertToJSONString(testResults))
} else {
var listener = testmanagerd.NewTestListener(io.Discard, io.Discard, os.TempDir())
_, err := testmanagerd.StartXCTestWithConfig(context.TODO(), xctestrunFilePath, device, listener)
testResults, err := testmanagerd.StartXCTestWithConfig(context.TODO(), xctestrunFilePath, device, listener)
if err != nil {
log.WithFields(log.Fields{"error": err}).Info("Failed running Xctest")
}

fmt.Println(convertToJSONString(testResults))
}
return
}
Expand Down