GT2/Ejectable/node_modules/react-native/scripts/run-android-local-unit-test...

20 lines
517 B
Bash
Raw Normal View History

2021-08-16 00:14:59 +00:00
#!/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.
# Runs all Android unit tests locally.
# See https://reactnative.dev/docs/testing.html
source $(dirname $0)/validate-android-sdk.sh
source $(dirname $0)/validate-android-test-env.sh
set -e
echo "Fetching dependencies..."
buck fetch ReactAndroid/src/test/...
echo "Running unit tests..."
buck test ReactAndroid/src/test/...