Skip to content

Support custom binary return types for @Attachment#1336

Merged
baev merged 1 commit into
mainfrom
fix-485
Jul 22, 2026
Merged

Support custom binary return types for @Attachment#1336
baev merged 1 commit into
mainfrom
fix-485

Conversation

@baev

@baev baev commented Jul 22, 2026

Copy link
Copy Markdown
Member

Context

@Attachment methods can now return custom domain objects that implement AttachmentBytes. Allure uses the bytes supplied by attachmentBytes(), so users no longer need to unwrap those objects to byte[] at every attachment call site.

Existing byte[] behavior and UTF-8 string conversion remain unchanged for other return values.

fixes #485

Checklist

@baev baev added the pr:improvement Change that improves some user experience but can't be considered as a new feature label Jul 22, 2026
@github-actions

Copy link
Copy Markdown

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure Java – Pull request #1336 27m 34s Passed tests 2011   Skipped tests 2 2 0 0 View
Allure Java GitHub actions run (2026-07-22T12:00:28.629Z) 27m 34s Passed tests 2011   Skipped tests 2 2 0 0 View

@baev
baev merged commit d5a8c73 into main Jul 22, 2026
10 of 11 checks passed
@baev
baev deleted the fix-485 branch July 22, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr:improvement Change that improves some user experience but can't be considered as a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add @Attachment byte[] interface

2 participants