Skip to content

Running XCTests

scd can automatically build, deploy, and run XCTest suites on an Android device or emulator. This is done with the test command.

The test command builds an Android Test APK containing the test bundle, installs it on the target device, launches it, and streams test output until the suite completes.

test accepts the same SPM Build Options and Libraries Options as build and archive.

To run the test suite on a connected Android device or emulator:

Terminal window
scd test --platform android-arm64-v8a

To run on a specific device:

Terminal window
scd test --platform android-arm64-v8a --device emulator-5554

See Selecting Android Device for details on device selection.