2016-05-04 18:57:42 +03:00
|
|
|
#!/bin/bash
|
2021-12-31 02:08:43 +03:00
|
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
2018-09-07 23:08:05 +03:00
|
|
|
#
|
|
|
|
# This source code is licensed under the MIT license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree.
|
2019-10-16 06:08:07 +03:00
|
|
|
|
2016-05-04 18:57:42 +03:00
|
|
|
# Runs all Android unit tests locally.
|
2021-11-22 14:27:48 +03:00
|
|
|
# See https://reactnative.dev/docs/testing
|
2016-05-04 18:57:42 +03:00
|
|
|
|
2016-12-14 04:07:13 +03:00
|
|
|
source $(dirname $0)/validate-android-sdk.sh
|
|
|
|
source $(dirname $0)/validate-android-test-env.sh
|
2016-05-05 18:17:02 +03:00
|
|
|
|
2016-12-14 04:07:13 +03:00
|
|
|
set -e
|
2016-05-04 18:57:42 +03:00
|
|
|
|
|
|
|
echo "Fetching dependencies..."
|
|
|
|
buck fetch ReactAndroid/src/test/...
|
2016-12-14 04:07:13 +03:00
|
|
|
|
2016-05-04 18:57:42 +03:00
|
|
|
echo "Running unit tests..."
|
|
|
|
buck test ReactAndroid/src/test/...
|