Re-enable iOS integration tests (#37571)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/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
This commit is contained in:
Родитель
ccedd49630
Коммит
c778e72586
До Ширина: | Высота: | Размер: 128 B После Ширина: | Высота: | Размер: 128 B |
До Ширина: | Высота: | Размер: 129 B После Ширина: | Высота: | Размер: 129 B |
|
@ -105,12 +105,16 @@ xcbeautifyFormat() {
|
|||
xcbeautify --report junit --report-path "$REPORTS_DIR/ios/results.xml"
|
||||
}
|
||||
|
||||
preloadBundles() {
|
||||
preloadBundlesRNIntegrationTests() {
|
||||
# Preload IntegrationTests bundles (packages/rn-tester/)
|
||||
curl -s 'http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=ios&dev=true' -o /dev/null
|
||||
curl -s 'http://localhost:8081/IntegrationTests/RCTRootViewIntegrationTestApp.bundle?platform=ios&dev=true' -o /dev/null
|
||||
}
|
||||
|
||||
preloadBundlesRNTester() {
|
||||
# Preload the RNTesterApp bundle for better performance in integration tests
|
||||
curl -s 'http://localhost:8081/packages/rn-tester/js/RNTesterApp.ios.bundle?platform=ios&dev=true' -o /dev/null
|
||||
curl -s 'http://localhost:8081/packages/rn-tester/js/RNTesterApp.ios.bundle?platform=ios&dev=true&minify=false' -o /dev/null
|
||||
curl -s 'http://localhost:8081/IntegrationTests/IntegrationTestsApp.bundle?platform=ios&dev=true' -o /dev/null
|
||||
curl -s 'http://localhost:8081/IntegrationTests/RCTRootViewIntegrationTestApp.bundle?platform=ios&dev=true' -o /dev/null
|
||||
}
|
||||
|
||||
main() {
|
||||
|
@ -128,7 +132,8 @@ main() {
|
|||
# Start the packager
|
||||
yarn start --max-workers=1 || echo "Can't start packager automatically" &
|
||||
waitForPackager
|
||||
preloadBundles
|
||||
preloadBundlesRNTester
|
||||
preloadBundlesRNIntegrationTests
|
||||
|
||||
# Build and run tests.
|
||||
if [ -x "$(command -v xcbeautify)" ]; then
|
||||
|
|
Загрузка…
Ссылка в новой задаче