2016-05-04 18:57:42 +03:00
|
|
|
#!/bin/bash
|
2018-09-12 01:27:47 +03:00
|
|
|
# Copyright (c) Facebook, Inc. and its 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.
|
|
|
|
# See http://facebook.github.io/react-native/docs/testing.html
|
|
|
|
|
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/...
|