【问题标题】:Detox E2E tests won't run on react-native projectDetox E2E 测试不会在 react-native 项目上运行
【发布时间】:2019-10-19 06:59:48
【问题描述】:

我正在尝试在 react-native 项目中为 E2E 测试实施 detox,当我尝试运行 detox test 命令时,它只是挂起

当我运行调试同步时,我认为这是我遇到的问题:

DetoxServer.js/CANNOT_FORWARD] role=testee not connected, cannot fw action (sessionId=f1dbfa2b-7dff-df8d-8a71-66b0b637f61d)

然后最终会在一个循环中吐出:

etox[63865] INFO:  [actions.js] Sync JavaScript Timers: Javascript Timers Ids: 13729, 13730
detox[63865] INFO:  [actions.js] Sync Dispatch Queue: com.apple.main-thread
detox[63865] INFO:  [actions.js] Sync JavaScript Timers: Javascript Timers Ids: 13741, 13742
detox[63865] INFO:  [actions.js] Sync Dispatch Queue: com.apple.main-thread
detox[63865] INFO:  [actions.js] Sync WXRunLoopIdlingResource: React Native thread is busy.
detox[63865] INFO:  [actions.js] Sync Dispatch Queue: com.apple.main-thread
detox[63865] INFO:  [actions.js] Sync Dispatch Queue: com.facebook.react.ShadowQueue

【问题讨论】:

    标签: ios react-native jestjs detox


    【解决方案1】:

    能够解决,我们的 RN 应用程序有一个加载动画闪屏,影响要连接的会话。能够通过在测试期间禁用动画来解决

    【讨论】:

      猜你喜欢
      • 2018-03-11
      • 2020-11-18
      • 2021-01-07
      • 2021-05-08
      • 2020-09-24
      • 1970-01-01
      • 2020-03-09
      • 2021-05-10
      • 1970-01-01
      相关资源
      最近更新 更多