MobileNativeFoundation / bluepill

Bluepill is a reliable iOS testing tool that runs UI tests using multiple simulators on a single machine
BSD 2-Clause "Simplified" License
3.19k stars 232 forks source link

Gather attachments from test run #549

Open dostrander opened 1 year ago

dostrander commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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

PushpakNarasimhan commented 1 year ago

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