mirror of
https://github.com/status-im/react-native.git
synced 2025-02-21 21:58:18 +00:00
Summary: Any failures in `test_objc` within the objc-test.sh script have been kept hidden as `xcpretty` was swallowing the exit code from xcodebuild. Fixes the issue TheSavior brought up in #22470 where failing snapshot tests were not reflected on Circle. Run on Circle CI and confirm `test_objc` fails (iOS tests *are* broken on master). Pull Request resolved: https://github.com/facebook/react-native/pull/22562 Differential Revision: D13406987 Pulled By: hramos fbshipit-source-id: 3f3da01ab4c0ad87077813b06d2fdf788f32f6b8
31 lines
878 B
Bash
Executable File
31 lines
878 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
#
|
|
# Script used to run tvOS tests.
|
|
# If no arguments are passed to the script, it will only compile
|
|
# the RNTester.
|
|
# If the script is called with a single argument "test", we'll
|
|
# also run the RNTester integration test (needs JS and packager):
|
|
# ./objc-test-tvos.sh test
|
|
|
|
set -ex
|
|
|
|
SCRIPTS=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
ROOT=$(dirname "$SCRIPTS")
|
|
|
|
cd "$ROOT"
|
|
|
|
# shellcheck disable=SC1091
|
|
source "scripts/.tests.env"
|
|
|
|
export TEST_NAME="tvOS"
|
|
export SCHEME="RNTester-tvOS"
|
|
export SDK="appletvsimulator"
|
|
export DESTINATION="platform=tvOS Simulator,name=${TVOS_DEVICE},OS=${IOS_TARGET_OS}"
|
|
|
|
# If there's a "test" argument, pass it to the test script.
|
|
./scripts/objc-test.sh $1
|