You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build one test product for both Swift Testing and XCTest (with Swift Testing enabled by default.) (#7766)
This PR refactors the previously-experimental Swift Testing support
logic so that only a single build product is produced when using both
XCTest and Swift Testing, and detection of Swift Testing usage is no
longer needed at compile time.
On macOS, Xcode 16 is responsible for hosting Swift Testing content, so
additional changes may be needed in Xcode to support this refactoring.
Such changes are beyond the purview of the Swift open source project.
Resolves rdar://120864035.
---------
Co-authored-by: Pavel Yaskevich <[email protected]>
throwInternalError("makeTestManifestTargets should not be used for build plan which does not require additional derived test targets")
37
+
varexplicitlyEnabledDiscovery=false
38
+
varexplicitlySpecifiedPath:AbsolutePath?
39
+
if case let.entryPointExecutable(caseExplicitlyEnabledDiscovery, caseExplicitlySpecifiedPath)=destinationBuildParameters.testingParameters.testProductStyle{
if isEntryPointPathSpecifiedExplicitly || explicitlyEnabledDiscovery {
169
167
if isEntryPointPathSpecifiedExplicitly {
170
168
// Allow using the explicitly-specified test entry point target, but still perform test discovery and thus declare a dependency on the discovery modules.
0 commit comments