Skip to content

XCTest XML results

Learn more about exporting your test results into a xml file here.

Example file

Download our example file here: example-xctest-report.plist.xml

Report

A report will have one or more TestableSummaries.

  • TestableSummaries we iterate over the array and define each TestableSummary within as a container

Test

A Test will be read as a container with one or more Sub Test(s).

  • Subtests we iterate over the array and define each Subtest within as a container

Sub Test

A Sub Test will be read as a container within a container, with one or more Sub Test.

  • TestName if present stored as title
  • TestIdentifier added and stored to/as description
  • ProjectPath added and stored to/as description
  • TargetName added and stored to/as description
  • TestObjectClass added and stored to/as description
  • Duration stored as cached_duration
  • TestStatus if present, we add an Activity Summary to the container

Activity Summary

We generate extra data through the Activity Summary. This will be added to parent result.

  • Title used to generate data and partially stored as exception_backtrace
  • SubActivities if present, used recursively to generate more data through the Activity Summary