2016-05-04 15:57:42 +00:00
|
|
|
#!/bin/bash
|
2018-09-11 22:27:47 +00:00
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
2018-09-07 20:08:05 +00: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 15:57:42 +00:00
|
|
|
# Runs all Android unit tests locally.
|
|
|
|
# See http://facebook.github.io/react-native/docs/testing.html
|
|
|
|
|
2016-12-14 01:07:13 +00:00
|
|
|
source $(dirname $0)/validate-android-sdk.sh
|
|
|
|
source $(dirname $0)/validate-android-test-env.sh
|
2016-05-05 15:17:02 +00:00
|
|
|
|
2016-12-14 01:07:13 +00:00
|
|
|
set -e
|
2016-05-04 15:57:42 +00:00
|
|
|
|
|
|
|
echo "Fetching dependencies..."
|
|
|
|
buck fetch ReactAndroid/src/test/...
|
2016-12-14 01:07:13 +00:00
|
|
|
|
2016-05-04 15:57:42 +00:00
|
|
|
echo "Running unit tests..."
|
|
|
|
buck test ReactAndroid/src/test/...
|