mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9e2e8c1a27
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
9 lines
364 B
Bash
Executable File
9 lines
364 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.
|
|
|
|
UDID=$(xcrun simctl list devices booted -j | jq -r '[.devices[]] | add | first | .udid')
|
|
maestro --udid="$UDID" test .maestro/ -e APP_ID=com.meta.RNTester.localDevelopment
|