Skip to content

Encode the known-issue comment in JSON if present.#1623

Merged
grynspan merged 2 commits intomainfrom
jgrynspan/encode-known-issue-comment
Mar 10, 2026
Merged

Encode the known-issue comment in JSON if present.#1623
grynspan merged 2 commits intomainfrom
jgrynspan/encode-known-issue-comment

Conversation

@grynspan
Copy link
Contributor

This PR adds an unsupported/experimental field to the JSON encoding of an issue to contain the comment provided by the developer as an argument to withKnownIssue().

We'll need to figure out how this property fits into the supported JSON schema. Is there prior art in other libraries for XFAIL-specific comments, for instance?

Checklist:

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

This PR adds an unsupported/experimental field to the JSON encoding of an issue
to contain the comment provided by the developer as an argument to
`withKnownIssue()`.

We'll need to figure out how this property fits into the supported JSON schema.
Is there prior art in other libraries for XFAIL-specific comments, for instance?
@grynspan grynspan added this to the Swift 6.4.0 (main) milestone Mar 10, 2026
@grynspan grynspan self-assigned this Mar 10, 2026
@grynspan grynspan added enhancement New feature or request tools integration 🛠️ Integration of swift-testing into tools/IDEs issue-handling Related to Issue handling within the testing library interoperability ↔️ Work related to Swift Testing and XCTest interoperability labels Mar 10, 2026
@grynspan grynspan merged commit 6ab7fbf into main Mar 10, 2026
27 checks passed
@grynspan grynspan deleted the jgrynspan/encode-known-issue-comment branch March 10, 2026 17:53
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