xccov command line tool --json flag outputs malformed JSON to standard output.

Originator:sean.antony
Number:rdar://FB9997652 Date Originated:27/04/2022
Status:Open Resolved:
Product:Xcode Product Version:13.3.1 (13E500a)
Classification:Incorrect/Unexpected Behavior Reproducible:Yes
 
Please describe the issue:
xccov command line tool --json flag outputs malformed JSON to standard output.

Please list the steps you took to reproduce the issue:
xcrun xccov view --report --only-targets --json TestResults.xcresult

What did you expect to happen?
Valid JSON written to standard output:

[{"buildProductPath":"a","coveredLines":0,"executableLines”:1,”lineCoverage":0,"name":"b"}]

What actually happened?
A log message is written to standard output followed by the expected JSON:

2022-04-27 13:28:15.390 xccov[27400:7151777] Requested but did not find extension point with identifier Xcode.IDEFoundation.IDEResultKitSerializationConverter
[{"buildProductPath":"a","coveredLines":0,"executableLines”:1,”lineCoverage":0,"name":"b"}]

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!