Skip to content

Conversation

crazytonyli
Copy link
Contributor

@crazytonyli crazytonyli commented Mar 18, 2024

Currently we use swift test to run SPM unit tests, which covers macOS and Linux. This PR adds steps to cover other Apple platforms, using xcodebuild test.

Test Instructions

The happy path should be covered by CI jobs.

You can test the new make targets fail if simulator doesn't exist. For example, scripts/xcodebuild-test.sh watchOS-11 should fail.

@crazytonyli crazytonyli requested a review from jkmassel March 18, 2024 21:32
@crazytonyli
Copy link
Contributor Author

The tvOS step produced an incorrect result: It should have failed because there is no tvOS SDK in the Xcode 15.2 image.

@crazytonyli crazytonyli marked this pull request as draft March 18, 2024 21:50
@crazytonyli crazytonyli marked this pull request as ready for review March 18, 2024 22:30
@crazytonyli crazytonyli merged commit 69c1521 into trunk Mar 19, 2024
@crazytonyli crazytonyli deleted the swift-package-tests-on-apple-platforms branch March 19, 2024 21:46
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.

2 participants