我在排毒仓库here上为此创建了一个问题。

我有一个React Native应用程序,可以使用JestDetox进行测试。

在本地进行的Detox测试没有问题(也在其他开发机上检查了完整性)。但是,在macOS box上的Circleci中运行时,它们从未通过。

Detox的调试输出使Detox在模拟器上进行初始应用程序设置后看起来永远都很忙,但是到那时为止没有任何进展。

相关版本包括:

  • 排毒:7.3.3
  • React Native:0.55.1
  • 节点:8.9.1
  • 设备:iPhone 7(11.2)
  • Xcode:9.2.0
  • macOS:10.12.6

  • 排毒日志摘录到“挂起”状态时的摘要:
        detox verb ws
        detox verb ws send: {"type":"reactNativeReload","params":{},"messageId":-1000}
        detox verb ws send: {"type":"currentStatus","params":{},"messageId":4}
        detox verb ws onMessage: {"type":"currentStatusResult","messageId":4,"params":{"state":"busy","resources":[{"name":"Dispatch Queue","info":{"queue":"<OS_dispatch_queue_main: com.apple.main-thread[0x1112b9dc0] = { xref = -2147483648, ref = -2147483648, sref = 1, target = com.apple.root.default-qos.overcommit[0x1112bb300], width = 0x1, state = 0x001ffe9e00000400, dirty, max qos 6, in-flight = 0, thread = 0x403 }>","prettyPrint":"com.apple.main-thread"}}],"messageId":4}}
        detox verb ws
        detox info Sync Dispatch Queue: com.apple.main-thread
        detox verb ws send: {"type":"currentStatus","params":{},"messageId":5}
        detox verb ws onMessage: {"type":"currentStatusResult","messageId":5,"params":{"state":"busy","resources":[{"name":"Dispatch Queue","info":{"queue":"<OS_dispatch_queue_main: com.apple.main-thread[0x1112b9dc0] = { xref = -2147483648, ref = -2147483648, sref = 1, target = com.apple.root.default-qos.overcommit[0x1112bb300], width = 0x1, state = 0x001ffe9e00000400, dirty, max qos 6, in-flight = 0, thread = 0x403 }>","prettyPrint":"com.apple.main-thread"}}],"messageId":5}}
        detox verb ws
        detox info Sync Dispatch Queue: com.apple.main-thread
        detox verb ws send: {"type":"currentStatus","params":{},"messageId":6}
        detox verb ws onMessage: {"type":"currentStatusResult","messageId":6,"params":{"state":"busy","resources":[{"name":"Dispatch Queue","info":{"queue":"<OS_dispatch_queue_main: com.apple.main-thread[0x1112b9dc0] = { xref = -2147483648, ref = -2147483648, sref = 1, target = com.apple.root.default-qos.overcommit[0x1112bb300], width = 0x1, state = 0x001ffe9e00000400, dirty, max qos 6, in-flight = 0, thread = 0x403 }>","prettyPrint":"com.apple.main-thread"}}],"messageId":6}}
        detox verb ws
        detox info Sync Dispatch Queue: com.apple.main-thread
        detox verb ws send: {"type":"currentStatus","params":{},"messageId":7}
        detox verb ws onMessage: {"type":"currentStatusResult","messageId":7,"params":{"state":"busy","resources":[{"name":"Dispatch Queue","info":{"queue":"<OS_dispatch_queue_main: com.apple.main-thread[0x1112b9dc0] = { xref = -2147483648, ref = -2147483648, sref = 1, target = com.apple.root.default-qos.overcommit[0x1112bb300], width = 0x1, state = 0x001ffe9e00000400, dirty, max qos 6, in-flight = 0, thread = 0x403 }>","prettyPrint":"com.apple.main-thread"}}],"messageId":7}}
        detox verb ws
        detox info Sync Dispatch Queue: com.apple.main-thread
        detox verb ws send: {"type":"currentStatus","params":{},"messageId":8}
        detox verb ws onMessage: {"type":"currentStatusResult","messageId":8,"params":{"state":"busy","resources":[{"name":"Dispatch Queue","info":{"queue":"<OS_dispatch_queue_main: com.apple.main-thread[0x1112b9dc0] = { xref = -2147483648, ref = -2147483648, sref = 1, target = com.apple.root.default-qos.overcommit[0x1112bb300], width = 0x1, state = 0x001ffe9e00000400, dirty, max qos 6, in-flight = 0, thread = 0x403 }>","prettyPrint":"com.apple.main-thread"}}],"messageId":8}}
        detox verb ws
        detox info Sync Dispatch Queue: com.apple.main-thread
        detox verb ws send: {"type":"currentStatus","params":{},"messageId":9}
        detox verb ws onMessage: {"type":"currentStatusResult","messageId":9,"params":{"state":"busy","resources":[{"name":"Dispatch Queue","info":{"queue":"<OS_dispatch_queue_main: com.apple.main-thread[0x1112b9dc0] = { xref = -2147483648, ref = -2147483648, sref = 1, target = com.apple.root.default-qos.overcommit[0x1112bb300], width = 0x1, state = 0x001ffe9e00000400, dirty, max qos 6, in-flight = 0, thread = 0x403 }>","prettyPrint":"com.apple.main-thread"}}],"messageId":9}}
        detox verb ws
        detox info Sync Dispatch Queue: com.apple.main-thread
        detox verb ws send: {"type":"currentStatus","params":{},"messageId":10}
        detox verb ws onMessage: {"type":"currentStatusResult","messageId":10,"params":{"state":"busy","resources":[{"name":"Dispatch Queue","info":{"queue":"<OS_dispatch_queue_main: com.apple.main-thread[0x1112b9dc0] = { xref = -2147483648, ref = -2147483648, sref = 1, target = com.apple.root.default-qos.overcommit[0x1112bb300], width = 0x1, state = 0x001ffe9e00000400, dirty, max qos 6, in-flight = 0, thread = 0x403 }>","prettyPrint":"com.apple.main-thread"}}],"messageId":10}}
        detox verb ws
        detox info Sync Dispatch Queue: com.apple.main-thread
        detox verb ws send: {"type":"currentStatus","params":{},"messageId":11}
        detox verb ws onMessage: {"type":"currentStatusResult","messageId":11,"params":{"state":"busy","resources":[{"name":"Dispatch Queue","info":{"queue":"<OS_dispatch_queue_main: com.apple.main-thread[0x1112b9dc0] = { xref = -2147483648, ref = -2147483648, sref = 1, target = com.apple.root.default-qos.overcommit[0x1112bb300], width = 0x1, state = 0x001ffe9e00000400, dirty, max qos 6, in-flight = 0, thread = 0x403 }>","prettyPrint":"com.apple.main-thread"}}],"messageId":11}}
        detox verb ws
        detox info Sync Dispatch Queue: com.apple.main-thread
        detox verb ws send: {"type":"currentStatus","params":{},"messageId":12}
        detox verb ws onMessage: {"type":"currentStatusResult","messageId":12,"params":{"state":"busy","resources":[{"name":"Dispatch Queue","info":{"queue":"<OS_dispatch_queue_main: com.apple.main-thread[0x1112b9dc0] = { xref = -2147483648, ref = -2147483648, sref = 1, target = com.apple.root.default-qos.overcommit[0x1112bb300], width = 0x1, state = 0x001ffe9e00000400, dirty, max qos 6, in-flight = 0, thread = 0x403 }>","prettyPrint":"com.apple.main-thread"}}],"messageId":12}}
    

    我的问题是; Detox是否挂起是因为它在Circleci上运行的资源(计算)环境低(任何人都可以在Circleci上运行大型Detox套件)吗?

    最佳答案

    将Nodejs版本降级到

    10-06 05:45