Skip to content

Expose ABI.EncodedExpression as tools SPI.#1613

Merged
grynspan merged 2 commits intomainfrom
jgrynspan/encodedexpression-as-spi
Mar 10, 2026
Merged

Expose ABI.EncodedExpression as tools SPI.#1613
grynspan merged 2 commits intomainfrom
jgrynspan/encodedexpression-as-spi

Conversation

@grynspan
Copy link
Contributor

@grynspan grynspan commented Mar 6, 2026

Follow-up to #1587.

Exposes ABI.EncodedExpression as SPI. A value of this type is associated with the issueRecorded event kind when an expectation like #expect() fails.

I've also removed ABI.EncodedExpectation as it doesn't track any useful information and just wraps the expression.

Note that ABI.EncodedExpression remains experimental.

Checklist:

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

Follow-up to #1587.

Exposes `ABI.EncodedExpression` as SPI. A value of this type is associated with
the `issueRecorded` event kind when an expectation like `#expect()` fails.

I've also removed `ABI.EncodedExpectation` as it doesn't track any useful
information and just wraps the expression.

Note that `ABI.EncodedExpression` remains experimental.

- [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md).
- [x] If public symbols are renamed or modified, DocC references should be updated.
@grynspan grynspan added this to the Swift 6.4.0 (main) milestone Mar 6, 2026
@grynspan grynspan self-assigned this Mar 6, 2026
@grynspan grynspan added the enhancement New feature or request label Mar 6, 2026
@grynspan grynspan requested a review from stmontgomery as a code owner March 6, 2026 20:50
@grynspan grynspan added the tools integration 🛠️ Integration of swift-testing into tools/IDEs label Mar 6, 2026
@grynspan grynspan added the issue-handling Related to Issue handling within the testing library label Mar 6, 2026
@grynspan grynspan requested a review from harlanhaskins as a code owner March 6, 2026 20:50
@grynspan grynspan added the interoperability ↔️ Work related to Swift Testing and XCTest interoperability label Mar 6, 2026
@grynspan grynspan merged commit 685f658 into main Mar 10, 2026
53 of 54 checks passed
@grynspan grynspan deleted the jgrynspan/encodedexpression-as-spi branch March 10, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request interoperability ↔️ Work related to Swift Testing and XCTest interoperability issue-handling Related to Issue handling within the testing library tools integration 🛠️ Integration of swift-testing into tools/IDEs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants