mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fbshipit-source-id: 278ce6f67f5df830b2218e3aca69be103d3c56a6
24 lines
1.2 KiB
Python
24 lines
1.2 KiB
Python
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/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
|
|
android_binary(
|
|
name = "instrumentation-tests",
|
|
keystore = "//keystores:debug",
|
|
manifest = "AndroidManifest.xml",
|
|
deps = [
|
|
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"),
|
|
],
|
|
)
|