Skip to content

Commit 07de465

Browse files
authored
better testing sequence (#1076)
1. I didn't open the ios emulator at first, and nothing appeared. So I think we should add a step to open it to the sequence. 2. It's better to delete the app before installing it and not after. Otherwise on the first test, you might have troubles installing it. 3. Explicitly mention that Metro will be launched in step 4. I actually didn't notice metro was opened automatically, and tried running it myself.
1 parent 5e1310a commit 07de465

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

docs/guide-release-testing.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,37 +99,50 @@ Here are the 4 dimensions we cover in manual testing:
9999
**1. RNTester + iOS:**
100100

101101
```bash
102+
# 1. Open an iOS Emulator
103+
# 2. Kill Metro
104+
# 3. Remove any existing RNTester:
105+
xcrun simctl uninstall booted com.meta.RNTester.localDevelopment
106+
# 4. Build, install, and run RNTester + Metro:
102107
yarn test-release-local -t "RNTester" -p "iOS" -c $GITHUB_TOKEN
103-
# verify tests "what to test"
104-
# kill metro
105-
xcrun simctl uninstall booted com.meta.RNTester.localDevelopment # delete RNTester from your iOS simulator
108+
# 5. Verify tests "what to test"
106109
```
107110

108111
**2. RNTester + Android:**
109112

110113
```bash
114+
# 1. Open an Android Emulator
115+
# 2. Kill Metro
116+
# 3. Remove any existing RNTester:
117+
adb uninstall com.facebook.react.uiapp
118+
# 4. Build, install, and run RNTester + Metro:
111119
yarn test-release-local -t "RNTester" -p "Android" -c $GITHUB_TOKEN
112-
# verify tests "what to test"
113-
# kill metro
114-
adb uninstall com.facebook.react.uiapp # delete RNTester from your Android emulator
120+
# 5. Verify tests "what to test"
115121
```
116122

117123
**3. RNTestProject + iOS:**
118124

119125
```bash
126+
127+
# 1. Open an iOS Emulator
128+
# 2. Kill Metro
129+
# 3. Remove any existing RNTestProject:
130+
xcrun simctl uninstall booted org.reactjs.native.example.RNTestProject
131+
# 4. Build, install, and run RNTestProject + Metro:
120132
yarn test-release-local -t "RNTestProject" -p "iOS" -c $GITHUB_TOKEN
121-
# verify tests "what to test"
122-
# kill metro
123-
xcrun simctl uninstall booted org.reactjs.native.example.RNTestProject # delete RNTestProject from your iOS simulator
133+
# 5. Verify tests "what to test"
124134
```
125135

126136
**4. RNTestProject + Android**
127137

128138
```bash
139+
# 1. Open an Android Emulator
140+
# 2. Kill Metro
141+
# 3. Remove any existing RNTestProject:
142+
adb uninstall com.rntestproject
143+
# 4. Build, install, and run RNTestProject + Metro:
129144
yarn test-release-local -t "RNTestProject" -p "Android" -c $GITHUB_TOKEN
130-
# verify tests "what to test"
131-
# kill metro
132-
adb uninstall com.rntestproject # delete RNTestProject from your Android emulator
145+
# 5. Verify tests "what to test"
133146
```
134147

135148
## Testing Sequence (RN <= 0.78)

0 commit comments

Comments
 (0)