Skip to content

Commit 9f1c8f5

Browse files
authored
renaming yarn test-e2e-local to test-release-local (#1026)
1 parent 66e02a7 commit 9f1c8f5

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

docs/guide-release-testing.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ When testing locally, we want to ensure that we start from a clean slate to avoi
2626
2. Remove any temporary files from the `react-native` repo:
2727

2828
```bash
29-
yarn test-e2e-local-clean
29+
yarn test-release-local-clean # On RN < 0.81- `yarn test-e2e-local-clean`
3030
```
3131

3232
3. Install dependencies:
@@ -45,7 +45,7 @@ We test on two apps
4545
To generate the the right project with the specific configuration desired, you can use the command:
4646

4747
```bash
48-
yarn test-e2e-local [options]
48+
yarn test-release-local [options] # On RN < 0.81- `yarn test-e2e-local`
4949
```
5050

5151
Followed by the options:
@@ -88,30 +88,33 @@ If you need to build React Native from source, you can skip the `-c` parameter.
8888

8989
## Dimensions to test (RN >= 0.79)
9090

91+
> [!Note]
92+
> On React Native **`< 0.81`** `test-release-local` is called `test-e2e-local`
93+
9194
Here are the 4 dimensions we cover in manual testing:
9295

9396
**1. RNTester + iOS:**
9497

9598
```bash
96-
yarn test-e2e-local -t "RNTester" -p "iOS" -c $GITHUB_TOKEN
99+
yarn test-release-local -t "RNTester" -p "iOS" -c $GITHUB_TOKEN
97100
```
98101

99102
**2. RNTester + Android:**
100103

101104
```bash
102-
yarn test-e2e-local -t "RNTester" -p "Android" -c $GITHUB_TOKEN
105+
yarn test-release-local -t "RNTester" -p "Android" -c $GITHUB_TOKEN
103106
```
104107

105108
**3. RNTestProject + iOS:**
106109

107110
```bash
108-
yarn test-e2e-local -t "RNTestProject" -p "iOS" -c $GITHUB_TOKEN
111+
yarn test-release-local -t "RNTestProject" -p "iOS" -c $GITHUB_TOKEN
109112
```
110113

111114
**4. RNTestProject + Android**
112115

113116
```bash
114-
yarn test-e2e-local -t "RNTestProject" -p "Android" -c $GITHUB_TOKEN
117+
yarn test-release-local -t "RNTestProject" -p "Android" -c $GITHUB_TOKEN
115118
```
116119

117120
## Dimensions to test (RN <= 0.78)
@@ -189,49 +192,52 @@ yarn test-e2e-local -t "RNTestProject" -p "Android" -h false -c $GITHUB_TOKEN
189192
> [!Tip]
190193
> Make sure the remote assets are built on your release branch to use the `-c` option (highly recommended)
191194
195+
> [!Note]
196+
> On React Native **`< 0.81`** `test-release-local` is called `test-e2e-local`
197+
192198
```bash
193-
react-native$ yarn test-e2e-local-clean # alias this command to make your life easier to something like "clean"
199+
react-native$ yarn test-release-local-clean # alias this command to make your life easier to something like "clean"
194200

195201
# RNTester
196202

197-
react-native$ yarn test-e2e-local -t "RNTester" -p "iOS" --hermes true -c $GITHUB_TOKEN
203+
react-native$ yarn test-release-local -t "RNTester" -p "iOS" --hermes true -c $GITHUB_TOKEN
198204
# verify tests "what to test"
199205
# kill metro
200206
xcrun simctl uninstall booted com.meta.RNTester.localDevelopment # delete RNTester from your iOS simulator
201207

202-
react-native$ yarn test-e2e-local -t "RNTester" -p "iOS" --hermes false -c $GITHUB_TOKEN
208+
react-native$ yarn test-release-local -t "RNTester" -p "iOS" --hermes false -c $GITHUB_TOKEN
203209
# verify tests "what to test"
204210
# kill metro
205211
xcrun simctl uninstall booted com.meta.RNTester.localDevelopment # delete RNTester from your iOS simulator
206212

207-
react-native$ yarn test-e2e-local -t "RNTester" -p "Android" --hermes true -c $GITHUB_TOKEN
213+
react-native$ yarn test-release-local -t "RNTester" -p "Android" --hermes true -c $GITHUB_TOKEN
208214
# verify tests "what to test"
209215
# kill metro
210216
adb uninstall com.facebook.react.uiapp # delete RNTester from your Android emulator
211217

212-
react-native$ yarn test-e2e-local -t "RNTester" -p "Android" --hermes false -c $GITHUB_TOKEN
218+
react-native$ yarn test-release-local -t "RNTester" -p "Android" --hermes false -c $GITHUB_TOKEN
213219
# verify tests "what to test"
214220
# kill metro
215221
adb uninstall com.facebook.react.uiapp # delete RNTester from your Android emulator
216222

217223
# RNTestProject
218224

219-
react-native$ yarn test-e2e-local -t "RNTestProject" -p "iOS" --hermes true -c $GITHUB_TOKEN
225+
react-native$ yarn test-release-local -t "RNTestProject" -p "iOS" --hermes true -c $GITHUB_TOKEN
220226
# verify tests "what to test"
221227
# kill metro
222228
xcrun simctl uninstall booted org.reactjs.native.example.RNTestProject # delete RNTestProject from your iOS simulator
223229

224-
react-native$ yarn test-e2e-local -t "RNTestProject" -p "iOS" --hermes false -c $GITHUB_TOKEN
230+
react-native$ yarn test-release-local -t "RNTestProject" -p "iOS" --hermes false -c $GITHUB_TOKEN
225231
# verify tests "what to test"
226232
# kill metro
227233
xcrun simctl uninstall booted org.reactjs.native.example.RNTestProject # delete RNTestProject from your iOS simulator
228234

229-
react-native$ yarn test-e2e-local -t "RNTestProject" -p "Android" --hermes true -c $GITHUB_TOKEN
235+
react-native$ yarn test-release-local -t "RNTestProject" -p "Android" --hermes true -c $GITHUB_TOKEN
230236
# verify tests "what to test"
231237
# kill metro
232238
adb uninstall com.rntestproject # delete RNTestProject from your Android emulator
233239

234-
react-native$ yarn test-e2e-local -t "RNTestProject" -p "Android" --hermes false -c $GITHUB_TOKEN
240+
react-native$ yarn test-release-local -t "RNTestProject" -p "Android" --hermes false -c $GITHUB_TOKEN
235241
# verify tests "what to test"
236242
# kill metro
237243
adb uninstall com.rntestproject # delete RNTestProject from your Android emulator

docs/roles-and-responsibilities.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ If you are joining as a release crew member you'll need the following:
119119
# In your react-native checkout
120120
git co 0.78-stable
121121
yarn
122-
yarn test-e2e-local -p iOS -t RNTester --hermes true -c <YOUR_GITHUB_TOKEN>
122+
# On RN < 0.81- `yarn test-e2e-local -p iOS -t RNTester --hermes true -c <YOUR_GITHUB_TOKEN>`
123+
yarn test-release-local -p iOS -t RNTester --hermes true -c <YOUR_GITHUB_TOKEN>
123124
```
124125
- See [release testing](./guide-release-testing.md) for more information.

0 commit comments

Comments
 (0)