Created
July 25, 2017 16:42
-
-
Save EricADockery/90f806e86113b6d5e29c101a6e665d2a to your computer and use it in GitHub Desktop.
Parallel iOS Testing using Bluepill
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lane :bluepill do | |
scan(scheme: “myApp”, build_for_testing: true) | |
sh “bash ./bluepill.sh“ | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah buddy thank you.