Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the recommended setup to use detox 20.28.0? #4656

Open
roni-castro-shipt opened this issue Dec 12, 2024 · 0 comments
Open

What is the recommended setup to use detox 20.28.0? #4656

roni-castro-shipt opened this issue Dec 12, 2024 · 0 comments

Comments

@roni-castro-shipt
Copy link

roni-castro-shipt commented Dec 12, 2024

Description

We've noticed recently a significant increase in iOS Detox build times and iOS Detox test run times after updating Xcode or iOS versions.

Here’s my setup on CircleCI with the same test cases:

  • Xcode: 15.3.0
  • Node: 18.15.0
  • Detox: 20.23.0
  • iOS Version: 17.4 (iPhone 15 Pro Max)

After updating to the following configuration:

  • Xcode: 16.1.0
  • Node: 18.15.0 or 20.18.1 (changing node version didn't improve performance)
  • Detox: 20.28.0
  • iOS Version: 18.1 (iPhone 16 Pro Max)

I noticed:

  • 25% increase in iOS build time
  • 131% increase in Detox test run time, with some timeout failures.

I also tested with Xcode 16.0.0 and iOS 17.5 (iPhone 15 Pro Max), which improved a bit, but the results are still:

  • 19% slower iOS build time
  • 25% slower Detox test run time

I tested just upgrading Detox to version 20.28.0 and kept the current setup with Xcode 15.3.0 and didn't notice any performance issues, only when running on Xcode 16.0+ and iOS 18+.

Screenshot 2024-12-12 at 18 00 23

I was wondering if Detox supports iOS 18.1. If so, could you share the recommended setup for using Detox 20.28.0 to ensure optimal performance and avoid any potential performance degradation?

Your environment

Detox version: 20.28.0
React Native version: 0.73.11
Node version: 18.15.0
Device model: iPhone 16 Pro Max - iOS version 18.1
OS: macOS 14.6.1
Test-runner (select one): jest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant