Detox: Detox Android incompatible with RN >= 50
Detox idling resources are not compatible with changes made in RN 50:
onMessage: {"messageId":3,"type":"error","params":{"error":"Wait for [com.wix.detox.espresso.ReactNativeUIModuleIdlingResource] to become idle timed out"}}
Encountered this while testing uses cases in RNN involving reload (By pressing R R)
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 5
- Comments: 24 (11 by maintainers)
Commits related to this issue
- Initial native test suite for Android, this should help debugging issues in #608 — committed to wix/Detox by rotemmiz 6 years ago
FYI, I can work on this full time from Tuesday.
Status as of June 2018:
References:
But React Native is already at 0.55 version and Detox doesn’t support Rn 0.52 and up? 😢
Hey folks! Having great fun trying to get Detox to work with latest react-native on Android. (Caveat: I am NOT an Android dev, so new to the whole Gradle build eco-system)
My use case is very limited, so hoping that subtle bugs won’t stop me from using detox.
However, currently can’t even get things to compile after following a combination of the instructions below to add detox.
https://github.com/wix/detox/blob/master/docs/Introduction.Android.md https://github.com/wix/detox/blob/master/docs/More.AndroidSupportStatus.md
React Native: 0.55.2 Detox: 7.3.3
What is the current status of things? Is there a chance of getting this running with latest react-native?
Other example projects I should look at?
If anyone actually cares to dig into this, my WIP spike code is here: https://github.com/agent-0028/react-native-sandbox/tree/adding-detox-for-android
Most recent commit messages explain more…
The documentation links to this ticket, and this ticket is closed but the issue is not fixed for RN >=52. Can we get a new ticket or re-open this one?
The documentation indicated it doesn’t work with RN>=50 so that might need to be updated as well.
@simonracz detox 7.3.4 is supporting RN 0.55.3 can you please update the status?
Hey folks! Having a little difficultly configuring this myself:
React Native: 0.54.2 Detox: 7.3.3
Has there been any progress with this compatibility? Any helpful workarounds?
I went over 0.49-stable - 0.50-stable diff, and found a few possible culprits.
Implement lazy discovery for ViewManagers. https://github.com/facebook/react-native/commit/da30b047037a1b4a97159b22abfd5244ecfaee19
~~Move destroy threads in catalystinstance off the UI thread https://github.com/facebook/react-native/commit/cf2ef84b16775e0e0eb53410e7e6e4ac66d05d03~~ (Espresso syncs with AsyncTasks by default)