bazelbuild / rules_swift

Bazel rules to build Swift on Apple and Linux platforms
Apache License 2.0
307 stars 133 forks source link

Add a `discover_tests` attribute to `swift_test` #1259

Closed brentleyjones closed 1 month ago

brentleyjones commented 1 month ago

This attribute, which is True by default, controls whether XCTest-style tests are automatically discovered (either using the Objective-C runtime or manual discovery via symbol graphs). If set to False, the test is assumed to provide its own main.

This will subsume the behavior of the swift.bundled_xctests feature, which will be removed in the future.

PiperOrigin-RevId: 471589475 (cherry picked from commit 477b48a2390229fe7eb6faf056432ddc3a294eab)