Skip to content

Automatically enable swift-testing support in swift test when it's a dependency. #7220

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

Conversation

grynspan
Copy link
Contributor

@grynspan grynspan commented Jan 2, 2024

This PR causes swift test to check the dependencies of the package under test; if they include an explicit reference to the public swift-testing repository on GitHub, then --enable-experimental-swift-testing is assumed. A developer can still opt out by explicitly writing --disable-experimental-swift-testing.

Resolves rdar://99155992.

…a dependency.

This PR causes `swift test` to check the dependencies of the package under test; if they include an explicit reference to the public swift-testing repository on GitHub, then `--enable-experimental-swift-testing` is assumed. A developer can still opt out by explicitly writing `--disable-experimental-swift-testing`.

Resolves rdar://99155992.
@grynspan
Copy link
Contributor Author

grynspan commented Jan 2, 2024

@swift-ci please test

@grynspan
Copy link
Contributor Author

grynspan commented Jan 3, 2024

@swift-ci please test

@grynspan grynspan requested a review from neonichu January 3, 2024 17:00
@neonichu
Copy link
Contributor

neonichu commented Jan 3, 2024

@swift-ci please test windows

@grynspan
Copy link
Contributor Author

grynspan commented Jan 3, 2024

@swift-ci please test

@grynspan
Copy link
Contributor Author

grynspan commented Jan 3, 2024

@swift-ci please test Windows

@grynspan grynspan merged commit cf6f4ae into main Jan 3, 2024
@grynspan grynspan deleted the jgrynspan/99155992-automatically-enable-swift-testing-when-present branch January 3, 2024 19:57
grynspan added a commit that referenced this pull request Jan 8, 2024
Follow-up to #7220. swift-testing itself should get swift-testing support enabled by default, but it doesn't list itself as a dependency. This change extends the code in that PR to also check the identities of the packages being built (rather than just their dependencies.) If the package being built is named "swift-testing", then support is enabled.
grynspan added a commit that referenced this pull request Jan 9, 2024
#7235)

Follow-up to #7220. swift-testing itself should get swift-testing
support enabled by default, but it doesn't list itself as a dependency.
This change extends the code in that PR to also check the identities of
the packages being built (rather than just their dependencies.) If the
package being built is named "swift-testing", then support is enabled.
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.

3 participants