排毒E2E测试不会在本机项目上运行

时间:2019-06-03 17:41:20

标签: ios react-native jestjs detox

我正在尝试在本机项目中为E2E测试实现排毒,而当我尝试运行排毒测试命令时,它会挂起

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

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

1 个答案:

答案 0 :(得分:0)

能够解决,我们的RN应用程序具有加载动画启动屏幕,该屏幕会影响要连接的会话。能够通过在测试过程中禁用动画来解决