Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extract details from xcresult file in XCUITest (from Xcode 11)?

I want to parse and get all the details related to my UI tests from xcresult file. Before Xcode 11, I can achieve this by reading the TestSummaries.plist file. But Apple has changed the xcresult format from Xcode 11.

I found this on google. But seems like it can only extract the screenshots from the xcresult bundle. I want to extract all details like, start/end times, action/activities times, code coverage details and logs etc.

Apple itself provide xcresulttool command line tool to see the xcresults in a human readable format. But it also does not gives all the needed information.

I saw about XCTestObservation & XCTestRun to build my own test observer but can't find any workable sample in the internet. Am I missing something? Did anyone throw some help on this?

like image 807
Confused Avatar asked Sep 20 '25 03:09

Confused


1 Answers

XCTestHTMLReport has helped me to obtain beautiful HTML report with screenshots.

like image 100
Sathish Kumar Avatar answered Sep 23 '25 10:09

Sathish Kumar