Skip to content

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
stmontgomery added a commit that referenced this pull request Apr 17, 2025
… when building for non-Embedded without a fallback condition (#1081)

This fixes an unintended side effect from #1043 where the
`SWT_NO_LEGACY_TEST_DISCOVERY` compilation conditional was being applied
when building for non-Embedded.

### Checklist:

- [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.
@stmontgomery stmontgomery modified the milestones: Swift 6.x, Swift 6.2 Apr 24, 2025
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