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

Add a discover_tests attribute to swift_test #1259

Merged

Conversation

brentleyjones
Copy link
Collaborator

@brentleyjones brentleyjones commented Jun 21, 2024

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 477b48a)

brentleyjones referenced this pull request Jun 21, 2024
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
@brentleyjones brentleyjones force-pushed the bj/add-a-discover_tests-attribute-to-swift_test branch 2 times, most recently from ed0ab66 to 2a4b01b Compare June 21, 2024 18:03
@brentleyjones brentleyjones enabled auto-merge (rebase) June 21, 2024 18:05
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 477b48a)
Signed-off-by: Brentley Jones <github@brentleyjones.com>
@brentleyjones brentleyjones force-pushed the bj/add-a-discover_tests-attribute-to-swift_test branch from 2a4b01b to da193cb Compare June 21, 2024 21:03
@brentleyjones brentleyjones merged commit 9ddb40f into master Jun 22, 2024
14 checks passed
@brentleyjones brentleyjones deleted the bj/add-a-discover_tests-attribute-to-swift_test branch June 22, 2024 00:45
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