Skip to content

Serialize test results as JSON #573

Open
@dmdmdm-nz

Description

@dmdmdm-nz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions