Skip to content

Conversation

@grynspan
Copy link
Contributor

@grynspan grynspan commented Dec 5, 2025

Document how to attach a file or directory to a test.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

Document how to attach a file or directory to a test.
@grynspan grynspan added this to the Swift 6.3.0 milestone Dec 5, 2025
@grynspan grynspan self-assigned this Dec 5, 2025
@grynspan grynspan added documentation 📚 Improvements or additions to documentation enhancement New feature or request attachments/activities 🖇️ Work related to attachments and/or activities labels Dec 5, 2025
Copy link
Contributor

@jgmcnutt jgmcnutt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor edits.

Comment on lines +82 to +84
its file URL. The testing library must read or map the file before attaching it
to your test, and those operations can fail, so you must explicitly create an
instance of ``Attachment`` before you record it.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
its file URL. The testing library must read or map the file before attaching it
to your test, and those operations can fail, so you must explicitly create an
instance of ``Attachment`` before you record it.
its file URL. The testing library needs to read or map the file before attaching it
to your test, and those operations can fail, so you need to explicitly create an
instance of ``Attachment`` before you record it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

attachments/activities 🖇️ Work related to attachments and/or activities documentation 📚 Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants