Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Experimental] Add Embedded Swift support to the _TestDiscovery target. #1043

Merged
merged 7 commits into from
Apr 8, 2025

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Mar 30, 2025

This PR adds preliminary/experimental support for Embedded Swift to the _TestDiscovery target only when building Swift Testing as a package. To try it out, you must set the environment variable SWT_EMBEDDED to true before building.

Tested with the following incantation using the 2025-03-28 main-branch toolchain:

SWT_EMBEDDED=1 swift build --target _TestDiscovery --triple arm64-apple-macosx

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 enhancement New feature or request embedded-swift 📟 Embedded Swift issues discovery 🔎 test content discovery labels Mar 30, 2025
@grynspan grynspan added this to the Swift 6.2 milestone Mar 30, 2025
@grynspan grynspan self-assigned this Mar 30, 2025
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan force-pushed the jgrynspan/test-discovery-embedded branch 2 times, most recently from e56d806 to c7c0810 Compare March 30, 2025 16:28
This PR adds preliminary/experimental support for Embedded Swift _to the `_TestDiscovery` target only_ when building Swift Testing as a package. To try it out, you must set the environment variable `SWT_EMBEDDED` to `true` before building.

Tested with the following incantation using the 2025-03-28 main-branch toolchain:

```sh
SWT_EMBEDDED=1 swift build --target _TestDiscovery --triple arm64-apple-macosx
```
@grynspan grynspan force-pushed the jgrynspan/test-discovery-embedded branch from c7c0810 to 0f49e73 Compare March 30, 2025 16:29
@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan
Copy link
Contributor Author

@swift-ci test

@grynspan grynspan modified the milestones: Swift 6.2, Swift 6.x Apr 6, 2025
@grynspan grynspan changed the title Add Embedded Swift support to the _TestDiscovery target. [Experimental] Add Embedded Swift support to the _TestDiscovery target. Apr 8, 2025
@grynspan
Copy link
Contributor Author

grynspan commented Apr 8, 2025

@swift-ci test

@grynspan grynspan merged commit 7907a4a into main Apr 8, 2025
3 checks passed
@grynspan grynspan deleted the jgrynspan/test-discovery-embedded branch April 8, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discovery 🔎 test content discovery embedded-swift 📟 Embedded Swift issues enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants