You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Swift SDK contains components that are built with the Swift Package Manager, e.g. swift-corelibs-foundation
Tests in swift-corelibs-foundation are implemented in Swift, so we have to make the Swift Runtime available on the emulator (similar for LIT-based tests). Tests are executed either via swift test or xcodebuild and there is integrated support for running them in the Apple simulators. It doesn't look like we can use that for Android.
This may be the easiest way to get Swift code tested in the Android emulator, as you see my Android CI doing. Note that I only use Termux on my Android CI because of some permissions issue with running the NIO tests, so I run it under an Android app's permissions instead. I just used the Termux app for that because I was familiar with it and it has OSS builds: any Android app would've worked.
The Swift SDK contains components that are built with the Swift Package Manager, e.g. swift-corelibs-foundation
Tests in swift-corelibs-foundation are implemented in Swift, so we have to make the Swift Runtime available on the emulator (similar for LIT-based tests). Tests are executed either via
swift test
orxcodebuild
and there is integrated support for running them in the Apple simulators. It doesn't look like we can use that for Android.swift build
seems to support cross-compilation of tests which produces "a test runner executable with the .xctest extension" as of this description:https://github.com/finagolfin/swift-android-sdk/blob/486e8be7bae6ea9100511af668464f2047f7b016/README.md#cross-compiling-and-testing-swift-packages-with-the-android-sdk-bundle
This CI configuration looks promising that we can automate it with a combination of
adb
andtermux
(which just for reference has a Swift package):https://github.com/finagolfin/swift-android-sdk/blob/6.0.3/.github/workflows/sdks.yml#L448
We have no cross-platform support for testing SPM-based projects in build.ps1 yet.
The text was updated successfully, but these errors were encountered: