From a7633afa0870ace6afe37bd8788b678def1b7d6e Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Wed, 29 Mar 2017 16:12:39 -0700 Subject: [PATCH] Add UIExplorer to manual testing script. Summary: Encourage a little more testing coverage and make it a little easier to do. Closes https://github.com/facebook/react-native/pull/13040 Reviewed By: shergin Differential Revision: D4742701 Pulled By: sahrens fbshipit-source-id: 4398c3b737b09c4113e965725585efc038936515 --- scripts/test-manual-e2e.sh | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/scripts/test-manual-e2e.sh b/scripts/test-manual-e2e.sh index 8cbe5fa27..241dcbbe7 100755 --- a/scripts/test-manual-e2e.sh +++ b/scripts/test-manual-e2e.sh @@ -36,6 +36,37 @@ rm -rf android success "Generated artifacts for Maven" +npm install + +success "Killing any running packagers" +lsof -i :8081 | grep LISTEN +lsof -i :8081 | grep LISTEN | /usr/bin/awk '{print $2}' | xargs kill + +info "Start the packager in another terminal by running 'npm start' from the root" +info "and then press any key." +info "" +read -n 1 + +./gradlew :Examples:UIExplorer:android:app:installDebug || error "Couln't build UIExplorer Android" + +info "Press any key to run UIExplorer in an already running Android emulator/device" +info "" +read -n 1 +adb shell am start -n com.facebook.react.uiapp/.UIExplorerActivity + +info "Press any key to open the project in Xcode, then build and test manually." +info "" +read -n 1 +open "Examples/UIExplorer/UIExplorer.xcodeproj" + +info "When done testing UIExplorer app on iOS and Android press any key to continue." +info "" +read -n 1 + +success "Killing packager" +lsof -i :8081 | grep LISTEN +lsof -i :8081 | grep LISTEN | /usr/bin/awk '{print $2}' | xargs kill + npm pack PACKAGE=$(pwd)/react-native-$PACKAGE_VERSION.tgz