go-ios icon indicating copy to clipboard operation
go-ios copied to clipboard

Serialize test results as JSON

Open dmdmdm-nz opened this issue 8 months ago • 0 comments
trafficstars

Is your feature request related to a problem? Please describe. I'm trying to parse the results of a test executed via ios runtest. It appears that the results are logged as a go struct, and this makes it difficult to parse.

testResults, err := testmanagerd.RunTestWithConfig(context.TODO(), config)
...
log.Info(fmt.Printf("%+v", testResults))

Describe the solution you'd like It would be great if the results were serialized as JSON prior to logging them to the console. Ideally this would happen for both runtest and runxctest commands.

Describe alternatives you've considered N/A

Additional context N/A

dmdmdm-nz avatar Mar 12 '25 02:03 dmdmdm-nz