After run xctest, xcode will generate a .xcresult file, but can't open it. I want to send the result to others and let them to view it
how to open a *.xcresult file from Xcode?
We would also like to be able to view the data from these packages outside of the Xcode context so that we can harness them as test result reports.
Is this supported in any way? I'm looking for something similar to `xccov` that would allow me to generate a report/html summary
If you look at this file in terminal, it is actually a folder. In Finder you can right click it, and click 'Show Package Contents' to be able to see test summaries and attachements inside.
The question I now have is whether its possible to show the results in a human-readable form. So, if i look at the "report navigator" in xcode on the box that ran the tests, it is all laid out nicely in hierarchal form, including the screen shots. However, that big xcodebuild_result.xcresult.zip which i download from the box's hosted web site (clicking "download") seems to have all the data (including the screenshots), but it's not readable. Is there a way to have xcode open up this data and put it into a "report navigator" format?
I found a workaround wish it be helpful.
precondition:
there are at least one `xcresult` file generate by yourself under
~/Library/Developer/Xcode/DerivedData/YouAPP-awwqmomwcdpttkbshjjvkckzffiq/Logs/Test
If not, you can try to run one test case in the Xcode and waiting for the result come out.
here is the workaround:
1. cd into
~/Library/Developer/Xcode/DerivedData/YouAPP-awwqmomwcdpttkbshjjvkckzffiq/Logs/Test
2. backup one of the xcresult, and show package content of it, and replace its content with the ".xcresult" other guys shared with you.
3. now you can view it in Xcode.
The root cause might be related to this file: LogStoreManifest.plist, you can try to add the shared xcresult file into it.
I prefer the above workaround, It's easy though it is a crude way
Xcode Help is also a good starting point.
And this WWDC talk from 2019 is also helpful.