react-native - 如何在 Detox 中启用 `debug` 的情况下运行 RN 测试?

标签 react-native detox

有没有办法在启用了调试模式的模拟器上启动React Native应用程序(以连接到RNDebugger)?

有什么平台可以启动应用程序/运行排毒吗?

最佳答案

好吧,对于那些没有找到问题的人(还有我)

https://github.com/wix/Detox/issues/403

This is not supported and will not be implemented. When you use remote JS debugger, all JS calculation is performed on another process (Chrome) and Detox cannot sync your app reliably. You can read your logs after Detox finishes running your tests.

更新:作为 BeforeAll 中的解决方法,我将 sleep 时间设置为 30 秒以在 Debug模式下重新加载应用程序

关于react-native - 如何在 Detox 中启用 `debug` 的情况下运行 RN 测试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62712060/

相关文章:

javascript - 在 iOS 模拟器上运行 React-Native 应用程序

xcode - 如何在 xcode 中看到 console.log 以获取 React Native 的发布版本

ios - Font Awesome 在我的 React Native 项目中未被识别

javascript - 如何在javascript中获取特定时间的日期

javascript - React Native setState JSON 对象

ios - 使用 detox 测试 e2e 无法启动 iPhone 模拟器,而是启动 Apple TV

react-native - Detox - 无法在 ScrollView 元素上使用滚动操作

ios - 排毒运行时错误 :Detox instance has not been initialized

android - 使用 Detox 运行模拟器时出现问题 : [DetoxServer. js/CANNOT_FORWARD] role=testee not connected