Skip to content

[WIP, DNM] Prototype #expect() overloads outside the testing library.#1386

Draft
grynspan wants to merge 1 commit intomainfrom
jgrynspan/foundation.process-exit-test
Draft

[WIP, DNM] Prototype #expect() overloads outside the testing library.#1386
grynspan wants to merge 1 commit intomainfrom
jgrynspan/foundation.process-exit-test

Conversation

@grynspan
Copy link
Contributor

This PR introduces an overload of #expect()/#require() that's implemented outside the core Swift Testing library. It implements exit tests based on Foundation's Process class (AKA NSTask.)

I do not plan to merge this PR. Rather, it's serving as a breadboard to let me prototype overloading #expect() outside Swift Testing, which we can then apply to other libraries like swift-subprocess and swift-argument-parser.

This PR introduces an overload of `#expect()`/`#require()` that's implemented
outside the core Swift Testing library. It implements exit tests based on
Foundation's `Process` class (AKA `NSTask`.)

I do **not** plan to merge this PR. Rather, it's serving as a breadboard to let
me prototype overloading `#expect()` outside Swift Testing, which we can then
apply to other libraries like `swift-subprocess` and `swift-argument-parser`.
@grynspan grynspan self-assigned this Oct 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant