Made SandCastle run the same Instrumentation Tests that are open sourced and are running on CI

Reviewed By: mkonicek

Differential Revision: D3229774

fb-gh-sync-id: 48239e8898eb011ad767bf102aa65025351363c6
fbshipit-source-id: 48239e8898eb011ad767bf102aa65025351363c6
This commit is contained in:
Konstantin Raev
2016-04-29 05:10:27 -07:00
committed by Facebook Github Bot 6
parent 58876d5a03
commit f99786cc89
7 changed files with 287 additions and 12 deletions

View File

@@ -3,7 +3,7 @@ include_defs('//ReactAndroid/DEFS')
# We are running instrumentation tests in simple mode: app code and instrumentation are in the same APK
# Currently you need to run these commands to execute tests:
#
# node local-cli/cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/assets/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
# node local-cli/cli.js bundle --platform android --dev true --entry-file ReactAndroid/src/androidTest/js/TestBundle.js --bundle-output ReactAndroid/src/androidTest/assets/AndroidTestBundle.js
# gradle :ReactAndroid:packageReactNdkLibsForBuck
# buck install ReactAndroid/src/androidTest/buck-runner:instrumentation-tests
# ./scripts/run-android-instrumentation-tests.sh com.facebook.react.tests
@@ -12,13 +12,12 @@ android_binary(
manifest = 'AndroidManifest.xml',
keystore = '//keystores:debug',
deps = [
react_native_integration_tests_target('java/com/facebook/react/tests:tests'),
react_native_integration_tests_target('assets:assets'),
react_native_dep('third-party/java/testing-support-lib:exposed-instrumentation-api'),
react_native_target('jni/prebuilt:reactnative-libs'),
react_native_target('jni/prebuilt:android-jsc'),
react_native_dep('libraries/soloader/java/com/facebook/soloader:soloader'),
react_native_dep('third-party/java/testing-support-lib:exposed-instrumentation-api'),
react_native_integration_tests_target('assets:assets'),
react_native_integration_tests_target('java/com/facebook/react/tests:tests'),
react_native_target('java/com/facebook/react/devsupport:devsupport'),
react_native_target('jni/prebuilt:android-jsc'),
react_native_target('jni/prebuilt:reactnative-libs'),
],
)