Skip to content

Commit c778e72

Browse files
author
Adam Gleitman
committed
Re-enable iOS integration tests (facebook#37571)
Summary: Pull Request resolved: facebook#37571 During the RC.0 of 0.72, we disabled the iOS integration tests because they were not working with Metro and the new Monorepo setup. This change tries to re-enable them so we can be more protected in CI [internal] - Re-enable integration tests Reviewed By: cortinico Differential Revision: D46178840 fbshipit-source-id: a5239fa7067b8fb68d997dd0cc63b67fb54d2d7e
1 parent ccedd49 commit c778e72

26 files changed

+9
-4
lines changed
File renamed without changes.

scripts/objc-test.sh

+9-4
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,16 @@ xcbeautifyFormat() {
105105
xcbeautify --report junit --report-path "$REPORTS_DIR/ios/results.xml"
106106
}
107107

108-
preloadBundles() {
108+
preloadBundlesRNIntegrationTests() {
109+
# Preload IntegrationTests bundles (packages/rn-tester/)
110+
curl -s 'http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=ios&dev=true' -o /dev/null
111+
curl -s 'http://localhost:8081/IntegrationTests/RCTRootViewIntegrationTestApp.bundle?platform=ios&dev=true' -o /dev/null
112+
}
113+
114+
preloadBundlesRNTester() {
109115
# Preload the RNTesterApp bundle for better performance in integration tests
110116
curl -s 'http://localhost:8081/packages/rn-tester/js/RNTesterApp.ios.bundle?platform=ios&dev=true' -o /dev/null
111117
curl -s 'http://localhost:8081/packages/rn-tester/js/RNTesterApp.ios.bundle?platform=ios&dev=true&minify=false' -o /dev/null
112-
curl -s 'http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=ios&dev=true' -o /dev/null
113-
curl -s 'http://localhost:8081/IntegrationTests/RCTRootViewIntegrationTestApp.bundle?platform=ios&dev=true' -o /dev/null
114118
}
115119

116120
main() {
@@ -128,7 +132,8 @@ main() {
128132
# Start the packager
129133
yarn start --max-workers=1 || echo "Can't start packager automatically" &
130134
waitForPackager
131-
preloadBundles
135+
preloadBundlesRNTester
136+
preloadBundlesRNIntegrationTests
132137

133138
# Build and run tests.
134139
if [ -x "$(command -v xcbeautify)" ]; then

0 commit comments

Comments
 (0)