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 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 titleTestIdentifier
added and stored to/as descriptionProjectPath
added and stored to/as descriptionTargetName
added and stored to/as descriptionTestObjectClass
added and stored to/as descriptionDuration
stored as cached_durationTestStatus
if present, we add an Activity Summary to the container
Sub Test¶
A Sub Test will be read as a result.
TestName
stored as titleTestIdentifier
added and stored to/as descriptionProjectPath
added and stored to/as descriptionTargetName
added and stored to/as descriptionTestObjectClass
added and stored to/as descriptionFailureSummaries
if present, used to store two attributesMessage
stored as exception_namekey, 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_backtraceSubActivities
if present, used recursively to generate more data through the Activity Summary