Skip to content

Running Swift Linux Tests on Mac

Mike Kistler edited this page Jul 30, 2018 · 12 revisions

Setup

Install Docker. See the install instructions in the Docker documentation.

Run

From the root of the Swift SDK

docker run -i -t -v $(pwd):/root/swift-sdk swiftdocker/swift:4.1 /bin/bash
cd ~/swift-sdk
swift package resolve && swift package clean
swift build

To run all tests:

swift test

To run all tests for a service

swift test --filter ConversationV1Tests.ConversationTests

To run just one test

swift test --filter ConversationV1Tests.ConversationTests/testMessageInvalidWorkspaceID
Clone this wiki locally