Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Gather attachments from test run #549

Open
dostrander opened this issue Feb 10, 2023 · 3 comments
Open

Gather attachments from test run #549

dostrander opened this issue Feb 10, 2023 · 3 comments

Comments

@dostrander
Copy link
Contributor

Apple created the XCTAttachment in Xcode 9. This allows for attaching data to a test method execution, things like an image, file, data blob, etc...

Currently there is no way to gather these XCTAttachments from a test run. There are many scenarios where having attachments for post processing or debugging are useful. Specifically around snapshot tests and UI tests.

@chenxiao0228
Copy link
Collaborator

@dostrander internally we set the frameworks to write files to output-dir for post-processing. I think by test_env.

Would this be a sufficient workaround?

@dostrander
Copy link
Contributor Author

@chenxiao0228 I've been doing that, but it doesn't seem to output any of the XCTAttachments

@PushpakNarasimhan
Copy link

PushpakNarasimhan commented Aug 17, 2023

Any update on this? Would like to know if there's a work around for XCTAttachements / XCResult file output.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants