blob: 178f7d4348fc3682c0969695cb02fbbf9e6f43a6 [file] [log] [blame]
#!/bin/sh
FLUTTER_ENGINE=ios_debug_sim_unopt
TESTING_DIR=$(dirname "$0")
pushd $TESTING_DIR
if [ $# -eq 1 ]; then
FLUTTER_ENGINE=$1
fi
PRETTY="cat"
if which xcpretty; then
PRETTY="xcpretty"
fi
set -o pipefail && xcodebuild -sdk iphonesimulator \
-scheme IosUnitTests \
-destination 'platform=iOS Simulator,name=iPhone 8,OS=13.0' \
test \
FLUTTER_ENGINE=$FLUTTER_ENGINE | $PRETTY
popd