Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

.xcresult file doesn't open when -d flag is passed to deleted unattached files #220

Open
ssharma0312 opened this issue Oct 2, 2021 · 4 comments

Comments

@ssharma0312
Copy link

XCode 13
macOS Big Sur 11.6

XCode throws an error while opening the .xcresult file when -d flag is passed to delete unattached files.

#- xchtmlreport -r ${CI_PROJECT_DIR}/TestResults.xcresult -j -z -d

image

@nacho4d
Copy link
Member

nacho4d commented Oct 8, 2021

I wonder if it is the same as this issue: #203

Takeshi fixed this and PR was merged recently. Needs confirmation.

@ssharma0312
Copy link
Author

@nacho4d = This is still an issue on v2.2.0 as well which has #203 fix
image

@tylervick
Copy link
Member

Hey @ssharma0312 - what do you feel should be the expected behavior? Since there will always be unattached files remaining in the xcresult bundle, deleting these will always break the bundle.

The alternative behavior I could see is to copy attachments to a new directory and always leave xcresult intact, independent of the html result.

@ssharma0312
Copy link
Author

Ah I see what you mean.
Currently I rely on .xcresult file only as .html file produced counts re-run tests twice due #217 issue. The .xcresult provide currently goes over sometimes 0.5 GB in size which is a problem when uploading as part of CI/CD job. And if I can't open .xcresult file after it deletes the unattached images then there is no point of using the flag -d.

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

No branches or pull requests

3 participants