Skip to content

Instantly share code, notes, and snippets.

@EricADockery
Created July 25, 2017 16:42
Show Gist options
  • Save EricADockery/90f806e86113b6d5e29c101a6e665d2a to your computer and use it in GitHub Desktop.
Save EricADockery/90f806e86113b6d5e29c101a6e665d2a to your computer and use it in GitHub Desktop.
Parallel iOS Testing using Bluepill
#!/bin/bash
cd ..
DERIVEDPATH=`xcodebuild -showBuildSettings -workspace ./myApp.xcworkspace -scheme myApp | grep -m 1 “OBJROOT” | grep -oEi “\/.*”`
cd ./fastlane
./bluepill — xctestrun-path $DERIVEDPATH/CodeCoverage/Products/myApp_iphonesimulator10.3-x86_64.xctestrun -o ./test_output/ -R 2 -n 4 -f 1
cd ./test_output
if grep ‘<testsuite’ TEST-FinalReport.xml |grep “failures=\”1\””
then
exit 1
else
exit 0
fi
lane :bluepill do
scan(scheme: “myApp”, build_for_testing: true)
sh “bash ./bluepill.sh“
end
@a2f0
Copy link

a2f0 commented Nov 9, 2017

Yeah buddy thank you.

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