2016-05-04 08:57:42 -07:00
|
|
|
#!/bin/bash
|
2018-09-11 15:27:47 -07:00
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
2018-09-07 13:08:05 -07:00
|
|
|
#
|
|
|
|
# This source code is licensed under the MIT license found in the
|
|
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
#
|
2016-05-04 08:57:42 -07:00
|
|
|
# Runs all Android unit tests locally.
|
|
|
|
# See http://facebook.github.io/react-native/docs/testing.html
|
|
|
|
|
2016-12-13 17:07:13 -08:00
|
|
|
source $(dirname $0)/validate-android-sdk.sh
|
|
|
|
source $(dirname $0)/validate-android-test-env.sh
|
2016-05-05 08:17:02 -07:00
|
|
|
|
2016-12-13 17:07:13 -08:00
|
|
|
set -e
|
2016-05-04 08:57:42 -07:00
|
|
|
|
|
|
|
echo "Fetching dependencies..."
|
|
|
|
buck fetch ReactAndroid/src/test/...
|
2016-12-13 17:07:13 -08:00
|
|
|
|
2016-05-04 08:57:42 -07:00
|
|
|
echo "Running unit tests..."
|
|
|
|
buck test ReactAndroid/src/test/...
|