Skip to content

XCTest XML results

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

Example file

Download example file: 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 de array and define each Subtests 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

Sub Test

A Sub Test will be read as a result.

  • TestName 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
  • FailureSummaries if present, used to store two attributes
    • Message stored as exception_name
    • key, value combined and stored as exception_description

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