Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upImprove xctestrun documentation #463
Comments
This comment has been minimized.
This comment has been minimized.
An answer was in .xctestrun description. Because So basically the custom .xctestrun file should be in the unzipped folder. In my case in Xcode derived data folder + http://www.manpagez.com/man/5/xcodebuild.xctestrun/
|
This comment has been minimized.
This comment has been minimized.
I agree this is confusing. I'll work on improving the documentation. The reason we look int he unzipped folder is processing the potentially very large zip file in code is error prone. In the typical use case, the user already has the necessary files on disk. It's faster to access the files directly than via the zip. |
bootstraponline
changed the title
Error while running command (ftl.cli.firebase.test.ios.IosRunCommand@2d3ef181): java.lang.RuntimeException
Improve xctestrun documentation
Jan 17, 2019
This comment has been minimized.
This comment has been minimized.
OK, I got it. Thanks! Basically I have to remove the default generated UPD: I found that use |
This comment has been minimized.
This comment has been minimized.
here's the way I use Flank on iOS #!/bin/bash
set -euxo pipefail
if ! [ -x "$(command -v xcpretty)" ]; then
gem install xcpretty
fi
DD="dd_tmp"
SCHEME="StudentUITests"
ZIP="ios_student_earlgrey.zip"
rm -rf "$DD"
xcodebuild build-for-testing \
-workspace ../../Canvas.xcworkspace \
-scheme "$SCHEME" \
-derivedDataPath "$DD" \
-sdk iphoneos \
| xcpretty
pushd "$DD/Build/Products"
zip -r "$ZIP" *-iphoneos *.xctestrun
popd
mv "$DD/Build/Products/$ZIP" .
and yes test-targets is the best way to specify what tests to run. Ideally you shouldn't have to modify your .xctestrun file at all. |
gtroshin commentedJan 17, 2019
•
edited
my .zip file and .xctestrun are in different folders.
Seems like flank is trying to find xctest in a wrong directory (related where custom .xctestrun is).