Skip to content

Instantly share code, notes, and snippets.

@jasonm23
Last active June 1, 2018 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonm23/460d37ce95e85dbf10a4df36f899e045 to your computer and use it in GitHub Desktop.
Save jasonm23/460d37ce95e85dbf10a4df36f899e045 to your computer and use it in GitHub Desktop.

Setting up BluePill

https://github.com/linkedin/bluepill

https://github.com/linkedin/bluepill/releases (use the XCode 9.2 compatible release)

Copy the binary (bluepill) to /usr/local/bin


BluePill runs tests using a xctestrun binary which is built with XCode using:

xcodebuild with the build-for-testing command as below:

xcodebuild -workspace YourWorkspace.xcworkspace \
    -scheme YourJourneyTests \
    -sdk iphonesimulator \
    -destination 'platform=iOS Simulator,name=iPhone 7,OS=11.2' \
    build-for-testing \
    | xcpretty

After it's done copy the xctestrun from DerivedData

find it with:

find ~/Library/Developer/XCode -name '*xctestrun'

copy it to the project folder for convenience

bluepill --xctestrun-path ./$xctestrun -o ./output/

Integrating BluePill with Fastlane

see: https://github.com/tbrand/fastlane-plugin-bluepill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment