mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Add tests to simplify running Maestro e2e tests locally. Thanks to these scripts, users can just, from the root folder: ```sh yarn install cd packages/rn-tester # build android for testing yarn e2e-build- android # run tests on android yarn e2e-test-android # build iOS for testing yarn e2e-build-ios # run tests on iOS yarn e2e-test-ios ``` This is a preliminary step for a future umbrella issue. We can also use these command in CI to simplify the scripts. ## Changelog: [Internal] - add script to simplify e2e testing Pull Request resolved: https://github.com/facebook/react-native/pull/46545 Test Plan: Tested the command locally Reviewed By: cortinico Differential Revision: D62879105 Pulled By: cipolleschi fbshipit-source-id: 6f68aebb3f8112302a458ca9e118180d3dbaf180
20 lines
643 B
Bash
Executable File
20 lines
643 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
bundle install
|
|
bundle exec pod install
|
|
|
|
xcodebuild \
|
|
-scheme "RNTester" \
|
|
-workspace RNTesterPods.xcworkspace \
|
|
-configuration "Release" \
|
|
-sdk "iphonesimulator" \
|
|
-destination "generic/platform=iOS Simulator" \
|
|
-derivedDataPath "/tmp/RNTesterBuild"
|
|
xcrun simctl boot "iPhone 15 Pro"
|
|
xcrun simctl install booted "/tmp/RNTesterBuild/Build/Products/Release-iphonesimulator/RNTester.app"
|
|
open -a simulator
|