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

Consider renaming SWIFT_PM_TEST_LIBRARY to a more general name like APPLE_TEST_LIBRARY #7584

Closed
1 task done
jakepetroules opened this issue May 21, 2024 · 1 comment
Closed
1 task done
Labels
swift test Changes impacting `swift test` tool task

Comments

@jakepetroules
Copy link
Member

Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?

  • Confirmed reproduction steps with SwiftPM CLI.

Description

This env var is convenient for shared libraries which want to have support code that might be run by either an XCTest or SwiftTesting test case.

However, I suggest we name this more generally (for example, APPLE_TEST_LIBRARY) because it's not SwifPM-specific, and other build tools / IDEs might want to have a uniform way to identify the Apple-provided testing library in use.

I also expect we wouldn't set this environment variable if SwiftPM gained direct support for additional testing libraries from other platforms/environments, since those would likely be run via their own test harnesses which might define their own environment variables across different IDE integrations.

Expected behavior

No response

Actual behavior

No response

Steps to reproduce

No response

Swift Package Manager version/commit hash

No response

Swift & OS version (output of swift --version ; uname -a)

No response

@grynspan
Copy link
Contributor

grynspan commented Jun 9, 2024

This flag is meant to be used by SwiftPM and is not related to Apple specifically.

@grynspan grynspan closed this as not planned Won't fix, can't repro, duplicate, stale Jun 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift test Changes impacting `swift test` tool task
Projects
None yet
Development

No branches or pull requests

2 participants