Skip to content
Discussion options

You must be logged in to vote

--testing-library means something different: it is really an internal flag that specifies whether to run the test cases in "XCTest" mode versus "Swift Testing" mode.

What it sounds like you really want is the equivalent of swift test --filter MyNativeTestModule to run only the tests in the packages specified in the filter. Unfortunately, skip android test doesn't support the --filter flag (due to bugs in Swift Testing beyond our control). So there's no nice way of doing it.

However, there is a not-nice way of doing it, which is to gate the inclusion of your testing targets in the Package.swift within an environment variable check. Off the top of my head, it would look something like this …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tifroz
Comment options

Answer selected by marcprux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants