Skip to content

Add a C-callable "gestalt" function for querying some basic info.#1596

Merged
grynspan merged 4 commits intomainfrom
jgrynspan/gestalt
Feb 27, 2026
Merged

Add a C-callable "gestalt" function for querying some basic info.#1596
grynspan merged 4 commits intomainfrom
jgrynspan/gestalt

Conversation

@grynspan
Copy link
Contributor

This PR adds an exported C function that lets callers query some info that may be necessary to gather before those callers can reliably invoke the testing library's ABI-stable entry point function.

This function is not meant to be a general-purpose querying function, nor is it intended for use by tools authors. Rather, it is useful if you're writing code that works with the JSON event stream and needs to know how to communicate with the testing library. In particular, a caller would need to know the range of supported JSON schema versions.

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 exported C function that lets callers query some info that may
be necessary to gather before those callers can reliably invoke the testing
library's ABI-stable entry point function.

This function is _not_ meant to be a general-purpose querying function, nor is
it intended for use by tools authors. Rather, it is useful if you're writing
code that works with the JSON event stream and needs to know how to communicate
with the testing library. In particular, a caller would need to know the range
of supported JSON schema versions.
@grynspan grynspan added this to the Swift 6.4.0 (main) milestone Feb 26, 2026
@grynspan grynspan self-assigned this Feb 26, 2026
@grynspan grynspan added enhancement New feature or request tools integration 🛠️ Integration of swift-testing into tools/IDEs command-line experience ⌨️ enhancements to the command line interface interoperability ↔️ Work related to Swift Testing and XCTest interoperability labels Feb 26, 2026
@grynspan grynspan merged commit f682170 into main Feb 27, 2026
26 checks passed
@grynspan grynspan deleted the jgrynspan/gestalt branch February 27, 2026 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command-line experience ⌨️ enhancements to the command line interface enhancement New feature or request interoperability ↔️ Work related to Swift Testing and XCTest interoperability tools integration 🛠️ Integration of swift-testing into tools/IDEs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants