Skip to content

Expose ABI.EncodedAttachment as tools SPI.#1590

Draft
grynspan wants to merge 2 commits intomainfrom
jgrynspan/encodedattachment-as-spi
Draft

Expose ABI.EncodedAttachment as tools SPI.#1590
grynspan wants to merge 2 commits intomainfrom
jgrynspan/encodedattachment-as-spi

Conversation

@grynspan
Copy link
Contributor

@grynspan grynspan commented Feb 25, 2026

Follow-up to #1587.

Exposes ABI.EncodedAttachment as SPI. A value of this type is associated with the valueAttached event kind. The type already conforms to Attachable so it can be directly plumbed back into Swift Testing, and XCTest internally knows how to convert an Attachable value to an XCTAttachment.

Checklist:

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

@grynspan grynspan added this to the Swift 6.4.0 (main) milestone Feb 25, 2026
@grynspan grynspan self-assigned this Feb 25, 2026
@grynspan grynspan added enhancement New feature or request tools integration 🛠️ Integration of swift-testing into tools/IDEs attachments/activities 🖇️ Work related to attachments and/or activities tech-debt 💾 reduces technical debt interoperability ↔️ Work related to Swift Testing and XCTest interoperability labels Feb 25, 2026
Base automatically changed from jgrynspan/abi-version-as-spi to main February 25, 2026 19:33
@grynspan grynspan force-pushed the jgrynspan/encodedattachment-as-spi branch from 5deb8e8 to fa0b33c Compare February 25, 2026 19:34
Follow-up to #1587.

Exposes `ABI.EncodedAttachment` as SPI. A value of this type is associated with
the `valueAttached` event kind. The type already conforms to `Attachable` so it
can be directly plumbed back into Swift Testing, and XCTest internally knows how
to convert an `Attachable` value to an `XCTAttachment`.
@grynspan grynspan force-pushed the jgrynspan/encodedattachment-as-spi branch from fa0b33c to e74d2bb Compare February 25, 2026 20:07
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 enhancement New feature or request interoperability ↔️ Work related to Swift Testing and XCTest interoperability tech-debt 💾 reduces technical debt tools integration 🛠️ Integration of swift-testing into tools/IDEs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant