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

Show download link for other attachment mime types #271

Merged
merged 1 commit into from
Aug 22, 2022
Merged

Show download link for other attachment mime types #271

merged 1 commit into from
Aug 22, 2022

Conversation

tylervick
Copy link
Member

Background
Currently any attachments that don't fall into existing types (video, image, text-encoded) won't display in the report.

Even worse, the activity will still be displayed but expanding the activity shows nothing.

Changes
Adding rudimentary support for "other" file type attachments
When selected, "other" file types will display a download link in the preview pane

Inline attachments are still a bit tricky since we need to know the mime type in order to encode and download. This change includes "zip" by default (per my use case).
Ultimately, AttachmentType should be replaced with Apple's UTType.

@tylervick tylervick merged commit 94f0a3a into XCTestHTMLReport:main Aug 22, 2022
@tylervick tylervick deleted the tvick/download-unknown-attachments branch August 22, 2022 00:14
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

Successfully merging this pull request may close these issues.

None yet

1 participant