swift-testing icon indicating copy to clipboard operation
swift-testing copied to clipboard

Add a `Bundle.testTarget` property.

Open grynspan opened this issue 1 year ago • 3 comments

This PR adds an experimental class property to Bundle in the Foundation cross-import overlay. The property's value represents the bundle containing the test target. On Apple platforms, this is an XCTest bundle. Elsewhere, it's just the main bundle.

This is an experimental interface only.

Checklist:

  • [x] Code and documentation should follow the style of the Style Guide.
  • [x] If public symbols are renamed or modified, DocC references should be updated.

grynspan avatar Dec 10 '24 16:12 grynspan

@swift-ci test

grynspan avatar Dec 10 '24 16:12 grynspan

@swift-ci test

grynspan avatar Dec 10 '24 16:12 grynspan

@swift-ci test Windows

grynspan avatar Dec 10 '24 16:12 grynspan

The existence of #bundle supersedes this PR. https://github.com/swiftlang/swift-foundation/pull/1274

grynspan avatar Jul 14 '25 16:07 grynspan