Hello I'm writing XCTests in swift. I need some additional test information that does not fit into to the XCResults. I'm currently writing this to a file on the physical device that's being tested. What I would like to do is at the end of all tests copy this file to the attached computer. Is this possible?
Asked
Active
Viewed 140 times
1 Answers
1
The best way to achieve it is using XCTAttachment
.
Your test can attach any files to test results and they all are available in the test navigator.
It's all described in detail in this article: Adding Attachments to Tests, Activities, and Issues.

Vadim Belyaev
- 2,456
- 2
- 18
- 23