首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >在排毒测试时在溅屏超时时对本机完成反应

在排毒测试时在溅屏超时时对本机完成反应
EN

Stack Overflow用户
提问于 2017-11-16 06:22:40
回答 1查看 1.2K关注 0票数 4

描述

我对超时有问题,我不知道为什么。它请求权限,然后设置权限(可能)。在这一刻,应用程序看起来加载,但在那之后,将显示黑色屏幕与旋转片刻,然后飞溅屏幕。就在这一刻,应用程序被卡住了。

我发现了一些关于超时的问题,但是我尝试了很多,但是没有什么效果。我的同事试图用相同的包版本在同一个项目上运行Detox,而且没有problem.Hhe,它有相同版本的、XCode、Node、Mocha和Detox。

我尝试了什么:

  • 节点的几个版本: 8.1.3、8.9.1和9.1.0
  • 重新安装节点
  • 删除并重新安装node_modules (纱线/npm)
  • 更改解毒版本: 5.9.4和5.8.1
  • 更改Mocha版本: 4.0.1和3.5.2
  • 在ios模拟器中删除和安装应用程序
  • 升级XCode (9.0.1 -> 9.1)
  • 重新建立戒毒所,
  • 删除npm缓存
  • 删除排毒缓存

测试:

代码语言:javascript
运行
AI代码解释
复制
describe('Permissions', () => {
  beforeEach(async () => {
    await device.launchApp({permissions: {
      notifications: 'YES',
      location: 'always',
    }});
    await device.reloadReactNative()
  });

  it('should have welcome screen', async () => {
    await element(by.id('searchCarsButton')).tap()
  })
})

Detox,Node,Device,Xcode和macOS版本

  • 排毒: 5.9.4,5.8.1
  • 节点: 8.1.3
  • 设备: ios模拟器
  • Xcode: 9.1
  • macOS:塞拉
  • 本地反应: 0.44.0

设备和详细的解毒日志

代码语言:javascript
运行
AI代码解释
复制
$ detox test --loglevel verbose
node_modules/.bin/mocha e2e --opts e2e/mocha.opts  --loglevel verbose    

detox-server info 14:33:10: server listening on localhost:50396...
detox verb ws onOpen [object Object]
detox verb ws send: {"type":"login","params":{"sessionId":"c14ee5fe-de13-5f60-b61f-ff487043587b","role":"tester"},"messageId":0}
detox verb ws onMessage: {"type":"loginSuccess","params":{"sessionId":"c14ee5fe-de13-5f60-b61f-ff487043587b","role":"tester"},"messageId":0}
detox verb ws  
detox verb 1: applesimutils --list "iPhone 7" --maxResults=1 
detox info 1: Searching for device matching iPhone 7... 
detox verb 1: stdout: [
detox verb 1: stdout:   {
detox verb 1: stdout:     "state" : "Booted",
detox verb 1: stdout:     "availability" : "(available)",
detox verb 1: stdout:     "name" : "iPhone 7",
detox verb 1: stdout:     "udid" : "2EE82BFA-2351-4627-937C-B93904827F29",
detox verb 1: stdout:     "os" : {
detox verb 1: stdout:       "version" : "11.1",
detox verb 1: stdout:       "availability" : "(available)",
detox verb 1: stdout:       "name" : "iOS 11.1",
detox verb 1: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 1: stdout:       "buildversion" : "15B87"
detox verb 1: stdout:     }
detox verb 1: stdout:   }
detox verb 1: stdout: ]
detox verb 1: stdout: 
detox verb 2: applesimutils --list 
detox verb 2: stdout: [
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "Apple TV",
detox verb 2: stdout:     "udid" : "2F518141-A525-47B9-9A33-E5AEE34A92FA",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "tvOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.tvOS-11-1",
detox verb 2: stdout:       "buildversion" : "15J580"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "Apple TV 4K",
detox verb 2: stdout:     "udid" : "EA308CF4-5A1F-41EC-AB1C-9E081C6860B4",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "tvOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.tvOS-11-1",
detox verb 2: stdout:       "buildversion" : "15J580"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "Apple TV 4K (at 1080p)",
detox verb 2: stdout:     "udid" : "4A9D24CE-469A-4BA9-86C5-6A6418B906B1",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "tvOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.tvOS-11-1",
detox verb 2: stdout:       "buildversion" : "15J580"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPad (5th generation)",
detox verb 2: stdout:     "udid" : "BDD2070B-24B7-4748-9FCD-1A7A542B1741",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPad Air",
detox verb 2: stdout:     "udid" : "EE452C63-A1CB-47A4-9DDE-3C85586C4AB0",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPad Air 2",
detox verb 2: stdout:     "udid" : "8D7EE2CD-A09B-41A9-B7B5-0FEC4634AE1C",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPad Pro (10.5-inch)",
detox verb 2: stdout:     "udid" : "3487A5FF-3C7C-495A-BC8C-2B805908F3AB",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPad Pro (12.9-inch)",
detox verb 2: stdout:     "udid" : "EF72BAC9-BD3B-422A-917B-259E1D4F049D",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPad Pro (12.9-inch) (2nd generation)",
detox verb 2: stdout:     "udid" : "76F7BFE5-981E-4799-A42D-2B2C75CF6B89",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPad Pro (9.7-inch)",
detox verb 2: stdout:     "udid" : "81042BB1-C6D3-4C50-98B6-5DDD226C0A24",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPhone 5s",
detox verb 2: stdout:     "udid" : "DC5CBF57-1804-4FB1-84B1-B47D32371F8D",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPhone 6",
detox verb 2: stdout:     "udid" : "0073B75C-D6DF-4F35-981E-965420C1F660",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPhone 6 Plus",
detox verb 2: stdout:     "udid" : "A8FC2524-4819-49F2-8694-FB03C27C68EE",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPhone 6s",
detox verb 2: stdout:     "udid" : "4B963220-4BD9-4389-AB2D-D5B739578F86",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPhone 6s Plus",
detox verb 2: stdout:     "udid" : "4973CA12-2A69-42ED-A2C2-42AAB9FB2DB7",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Booted",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPhone 7",
detox verb 2: stdout:     "udid" : "2EE82BFA-2351-4627-937C-B93904827F29",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPhone 7 Plus",
detox verb 2: stdout:     "udid" : "9D7D03DD-10CE-4529-A356-62479A5A6C6A",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPhone 8",
detox verb 2: stdout:     "udid" : "4C3124D0-5353-4471-BB7B-9D9FB30298A7",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPhone 8 Plus",
detox verb 2: stdout:     "udid" : "D5350B7C-B7F9-4F36-B2F4-6D97D63C4869",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPhone SE",
detox verb 2: stdout:     "udid" : "6EA12F63-932D-456B-B74F-68732DC65EFE",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "iPhone X",
detox verb 2: stdout:     "udid" : "30AB0A5F-1E84-4747-AC74-882A0823177F",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "11.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "iOS 11.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-11-1",
detox verb 2: stdout:       "buildversion" : "15B87"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "Apple Watch - 38mm",
detox verb 2: stdout:     "udid" : "E0A4995F-4B50-4E6A-B13C-FC8863F4A677",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "4.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "watchOS 4.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-1",
detox verb 2: stdout:       "buildversion" : "15R844"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "Apple Watch - 42mm",
detox verb 2: stdout:     "udid" : "4CD40B3E-A994-4852-9058-22EAC2B26882",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "4.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "watchOS 4.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-1",
detox verb 2: stdout:       "buildversion" : "15R844"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "Apple Watch Series 2 - 38mm",
detox verb 2: stdout:     "udid" : "F9A49912-44A6-40EF-AC72-224E05461CF2",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "4.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "watchOS 4.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-1",
detox verb 2: stdout:       "buildversion" : "15R844"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "Apple Watch Series 2 - 42mm",
detox verb 2: stdout:     "udid" : "F23C9051-AF9B-401E-8DEC-B19BA31C7C0E",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "4.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "watchOS 4.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-1",
detox verb 2: stdout:       "buildversion" : "15R844"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "Apple Watch Series 3 - 38mm",
detox verb 2: stdout:     "udid" : "16D30FC1-9D10-462B-B28C-1DC54D6D78D0",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "4.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "watchOS 4.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-1",
detox verb 2: stdout:       "buildversion" : "15R844"
detox verb 2: stdout:     }
detox verb 2: stdout:   },
detox verb 2: stdout:   {
detox verb 2: stdout:     "state" : "Shutdown",
detox verb 2: stdout:     "availability" : "(available)",
detox verb 2: stdout:     "name" : "Apple Watch Series 3 - 42mm",
detox verb 2: stdout:     "udid" : "FE83E863-043D-4BB8-8C6F-3E0D5C39DD18",
detox verb 2: stdout:     "os" : {
detox verb 2: stdout:       "version" : "4.1",
detox verb 2: stdout:       "availability" : "(available)",
detox verb 2: stdout:       "name" : "watchOS 4.1",
detox verb 2: stdout:       "identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-4-1",
detox verb 2: stdout:       "buildversion" : "15R844"
detox verb 2: stdout:     }
detox verb 2: stdout:   }
detox verb 2: stdout: ]
detox verb 2: stdout: 
detox verb 3: /usr/bin/xcrun simctl uninstall 2EE82BFA-2351-4627-937C-B93904827F29 com.creativedock.hoppycar 
detox info 3: Uninstalling com.creativedock.hoppycar... 
detox info 3: com.creativedock.hoppycar uninstalled 
detox verb 4: /usr/bin/xcrun simctl install 2EE82BFA-2351-4627-937C-B93904827F29 /Applications/MAMP/htdocs/droover/ios/build/Build/Products/Debug-iphonesimulator/hoppycar.app 
detox info 4: Installing /Applications/MAMP/htdocs/droover/ios/build/Build/Products/Debug-iphonesimulator/hoppycar.app... 
detox info 4: /Applications/MAMP/htdocs/droover/ios/build/Build/Products/Debug-iphonesimulator/hoppycar.app installed 
detox verb 5: /usr/bin/xcrun simctl terminate 2EE82BFA-2351-4627-937C-B93904827F29 com.creativedock.hoppycar 
detox info 5: Terminating com.creativedock.hoppycar... 
detox info 5: com.creativedock.hoppycar terminated 
detox verb 6: /bin/cat /dev/null >$HOME/Library/Developer/CoreSimulator/Devices/2EE82BFA-2351-4627-937C-B93904827F29/data/tmp/detox.last_launch_app_log.out 2>$HOME/Library/Developer/CoreSimulator/Devices/2EE82BFA-2351-4627-937C-B93904827F29/data/tmp/detox.last_launch_app_log.err && SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/janvaclavik/Library/Detox/ios/dcbded2050005ff99b0bffc826182a2fb35fa7a4/Detox.framework/Detox" /usr/bin/xcrun simctl launch --stdout=/tmp/detox.last_launch_app_log.out --stderr=/tmp/detox.last_launch_app_log.err 2EE82BFA-2351-4627-937C-B93904827F29 com.creativedock.hoppycar --args -detoxServer ws://localhost:50396 -detoxSessionId c14ee5fe-de13-5f60-b61f-ff487043587b 
detox info 6: Launching com.creativedock.hoppycar... 
detox verb 6: stdout: com.creativedock.hoppycar: 28279
detox verb 6: stdout: 
detox info 6: com.creativedock.hoppycar launched. The stdout and stderr logs were recreated, you can watch them with:
        tail -F $HOME/Library/Developer/CoreSimulator/Devices/2EE82BFA-2351-4627-937C-B93904827F29/data/tmp/detox.last_launch_app_log.{out,err} 
detox verb ws send: {"type":"isReady","params":{},"messageId":-1000}
detox verb ws onMessage: {"type":"ready","messageId":-1000,"params":{}}
detox verb ws  
  Permissions
detox verb 7: applesimutils --simulator 2EE82BFA-2351-4627-937C-B93904827F29 --bundle com.creativedock.hoppycar --setPermissions notifications=YES,location=always 
detox info 7: Trying to set permissions... 
detox info 7: Permissions are set 
detox verb 8: /bin/cat /dev/null >$HOME/Library/Developer/CoreSimulator/Devices/2EE82BFA-2351-4627-937C-B93904827F29/data/tmp/detox.last_launch_app_log.out 2>$HOME/Library/Developer/CoreSimulator/Devices/2EE82BFA-2351-4627-937C-B93904827F29/data/tmp/detox.last_launch_app_log.err && SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/janvaclavik/Library/Detox/ios/dcbded2050005ff99b0bffc826182a2fb35fa7a4/Detox.framework/Detox" /usr/bin/xcrun simctl launch --stdout=/tmp/detox.last_launch_app_log.out --stderr=/tmp/detox.last_launch_app_log.err 2EE82BFA-2351-4627-937C-B93904827F29 com.creativedock.hoppycar --args -detoxServer ws://localhost:50396 -detoxSessionId c14ee5fe-de13-5f60-b61f-ff487043587b 
detox info 8: Launching com.creativedock.hoppycar... 
detox verb 8: stdout: com.creativedock.hoppycar: 28306
detox verb 8: stdout: 
detox info 8: com.creativedock.hoppycar launched. The stdout and stderr logs were recreated, you can watch them with:
        tail -F $HOME/Library/Developer/CoreSimulator/Devices/2EE82BFA-2351-4627-937C-B93904827F29/data/tmp/detox.last_launch_app_log.{out,err} 
detox verb ws send: {"type":"isReady","params":{},"messageId":-1000}
detox verb ws onMessage: {"type":"ready","messageId":-1000,"params":{}}
detox verb ws  
detox verb ws send: {"type":"reactNativeReload","params":{},"messageId":-1000}
detox verb ws onMessage: {"type":"ready","messageId":-1000,"params":{}}
detox verb ws  
detox verb ws send: {"type":"invoke","params":{"target":{"type":"Invocation","value":{"target":{"type":"EarlGrey","value":"instance"},"method":"detox_selectElementWithMatcher:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYMatchers"},"method":"matcherForAccessibilityID:","args":[{"type":"NSString","value":"searchCarsButton"}]}}]}},"method":"performAction:","args":[{"type":"Invocation","value":{"target":{"type":"Class","value":"GREYActions"},"method":"actionForTap","args":[]}}]},"messageId":1}
    1) should have welcome screen

detox verb ws send: {"type":"cleanup","params":{"stopRunner":true},"messageId":2}
detox verb ws onMessage: {"type":"cleanupDone","messageId":2,"params":{}}
detox verb ws  

  0 passing (3m)
  1 failing

  1) Permissions should have welcome screen:
     Error: Timeout of 135000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.


child_process.js:631
    throw err;
    ^

Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts  --loglevel verbose    
    at checkExecSyncError (child_process.js:588:13)
    at Object.execSync (child_process.js:628:13)
    at runMocha (/usr/local/lib/node_modules/detox/local-cli/detox-test.js:56:6)
    at Object.<anonymous> (/usr/local/lib/node_modules/detox/local-cli/detox-test.js:36:5)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)

detox.last_launch_app_log.{out,err}:

代码语言:javascript
运行
AI代码解释
复制
...
2017-11-13 12:20:55.393 dr[26453:980543] ☣️ DETOX:: Ignoring timer: 35 failure reason: "duration>1.5"
2017-11-13 12:20:57.402 dr[26453:980543] ☣️ DETOX:: Ignoring timer: 36 failure reason: "duration>1.5"
2017-11-13 12:20:59.410 dr[26453:980543] ☣️ DETOX:: Ignoring timer: 37 failure reason: "duration>1.5"
...
EN

回答 1

Stack Overflow用户

发布于 2017-11-16 18:45:16

这个错误实际上给了你这个问题。对于异步测试和钩子,请确保调用"done()“;

我相信您的问题是,您正在使用异步将这些函数转化为承诺,而测试框架不知道何时完成。

移除异步/等待,只使用一个普通的.then(),完成后,调用done()函数。那就该结束测试了。

更多信息在这里:https://mochajs.org/#asynchronous-code

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47332090

复制
相关文章
RN集成到现有原生应用-swift
创建一个空文件夹命名为你RN项目名称,在里面再新建一个文件夹/ios,把你现有的swift项目全部拷贝到/ios文件夹内。
用户6094182
2019/08/23
2K0
RN集成到现有原生应用-swift
升级和游戏音效 如何在场景和声音效果之间切换
在游戏中,您通常需要一项功能,以便在游戏进行时使游戏更难。例如,在Mario中,您需要清除每个阶段以传递到下一个区域。每次通过舞台,难度都会变得更难。在本节中,我们将学习如何从场景更改为另一个场景。此外,让我们实现任何游戏所需的功能:声音效果。
iOSDevLog
2019/03/11
1.7K0
将Quartz.NET集成到 Castle中
Castle是针对.NET平台的一个开源项目,从数据访问框架ORM到IOC容器,再到WEB层的MVC框架、AOP,基本包括了整个开发过程中的所有东西,为我们快速的构建企业级的应用程序提供了很好的服务.具体可参看TerryLee的Castle 开发系列文章。      可以通过称为 Facility 的组件用控制反转 (Inversion of Control, IoC) 和依赖注入将 第三方组件插入内核中。Startable Facility当一个组件满足一定的依赖关系之后,让它自动运行,比如说启动一个窗
张善友
2018/01/29
1.6K0
SpriteKit动画小游戏
Spritekit简介 Spritekit是苹果IOS7中引入的一个2D游戏引擎框架,可以实现各种动画效果,在这之前业界比较优秀的游戏引擎是cocos2d,支持场景切换、精灵和精灵表单、动作、动画和特
MelonTeam
2018/01/04
5.1K1
SpriteKit动画小游戏
将Java Document或其它文档集成到Eclipse中
阅读更多 将Java Document或其它文档集成到Eclipse中 http://www.cjsdn.net/post/view?bid=7&id=159461&sty=1 http://dev
阿敏总司令
2019/02/28
8250
将 Spring Cloud Task 集成到 Spring Boot 应用中
Spring Cloud Task是Spring Cloud的一个组件,它为Spring Boot应用程序提供了短期的任务处理功能。
堕落飞鸟
2023/04/17
6880
Flutter - 将 Flutter 集成到现有项目(iOS - Framework篇)
用 Flutter 来开发,从来都不可能是新开的一个纯 Flutter 项目,很大一部分都是 老项目接入 Flutter 来混编。
Flutter笔记
2020/06/17
4.5K0
Flutter - 将 Flutter 集成到现有项目(iOS - Framework篇)
如何将Thymeleaf技术集成到SpringBoot项目中
截至目前,不仅有了天气预报的API接口,也有了数据的缓存方案。现在,就要进行天气预报服务的实现,也就是说,这里需要一个面向用户的应用。这个应用应该拥有友好的界面,而不是一堆难以理解的数据。
愿天堂没有BUG
2022/10/28
1.1K0
如何将Thymeleaf技术集成到SpringBoot项目中
学习SpriteKit开发(1)
开发一款单机RPG游戏是很多80后儿时的梦想,但因为盗版等原因,国内的PC、家用机单击市场已经彻底被毁掉。新的独立游戏人想在这两个平台上线已经非常困难,引擎学习成本偏高。机能强大更多的强调的是游戏界面而不仅仅是游戏情节。但手机市场就大不同,机能还不够强大基本等于SFC、N64这个水准,吸引用户更多的还要依靠玩法和剧情。
海哥@开发
2022/04/06
1.3K0
学习SpriteKit开发(1)
rev command
rev 命令用于将文件中的每行内容以字符为单位反序输出,即第一个字符最后输出,最后一个字符最先输出,以此类推。
恋喵大鲤鱼
2023/10/12
1600
声网SDK荣膺GMGC“2018十大全球化品牌大奖
由GMGC、新华网联合主办的全球游戏开发者大会暨中国游戏盛典,在北京国际会议中心盛大召开。全球实时云领先企业声网荣获“十大全球化品牌大奖”。 中国游戏盛典是由GMGC、新华网创办的年度游戏领域盛典,面
BestSDK
2018/04/19
9610
声网SDK荣膺GMGC“2018十大全球化品牌大奖
Springboot集成logback将错误日志同步到数据库
在scrip下找到自己数据库所需的sql文件即可,连接为:https://github.com/qos-ch/logback/blob/master/logback-classic/src/main/resources/ch/qos/logback/classic/db/script/oracle.sql
分母为零
2019/08/06
2.7K0
使用 Kube-mgmt 将 OPA 集成到 Kubernetes 集群中
Open Policy Agent 简称 OPA,是一种开源的通用策略代理引擎,是 CNCF 毕业的项目。OPA 提供了一种高级声明式语言 Rego,简化了策略规则的定义,以减轻程序中策略的决策负担。在微服务、Kubernetes、CI/CD、API 网关等场景中均可以使用 OPA 来定义策略。
我是阳明
2022/04/06
1.2K0
使用 Kube-mgmt 将 OPA 集成到 Kubernetes 集群中
swift将framework上传到Cocoapods
.podspec文件的作用是为了让CocoaPods搜索引擎知道该代码的作者、版本号、概要、描述、源代码地址、部署版本、依赖的框架等描述信息。
用户6094182
2019/08/23
9860
swift将framework上传到Cocoapods
Swift 5.2 将 KeyPaths 用作函数
Swift 5.2 的新功能之一:能够将 KeyPaths 用作函数。如果您只在闭包中返回某个 KeyPath 的值,这将非常有用。
Swift社区
2021/11/26
4930
Swift 5.2 将 KeyPaths 用作函数
SpriteKit简介-创建您的第一个iPhone平台游戏
在本节中,您将学习如何使用SpriteKit创建自己的平台游戏。您将学习如何实现所有基本游戏功能,如玩家移动,玩家跳跃,相机工作,动画等。
iOSDevLog
2019/03/11
3.7K0
SpriteKit简介-创建您的第一个iPhone平台游戏
12岁学习编程,17岁香港高中生成苹果WWDC2020 Swift开发者挑战赛赢家!
今年的苹果WWDC学生开发者挑战赛上,入选的有一名17岁的香港高中生Alan Zhang。他的作品融入了AR元素,充满想象力,深深吸引了苹果高管们的眼球。
新智元
2020/06/29
7860
12岁学习编程,17岁香港高中生成苹果WWDC2020 Swift开发者挑战赛赢家!
Swift 5.2 将KeyPaths用作函数
Swift 5.2的新功能之一:能够将KeyPaths用作函数。如果您只在闭包中返回某个KeyPath的值,这将非常有用。
韦弦zhy
2020/03/19
4170
将Core ML模型集成到您的应用程序中
此示例应用程序使用经过训练的MarsHabitatPricer.mlmodel模型来预测火星上的栖息地价格。
iOSDevLog
2018/07/25
1.4K0
将华为地图套件集成到HarmonyOs可穿戴设备应用中
在本文中,我们将了解 HarmonyOs 中的华为地图套件。地图工具包是用于地图开发的 SDK。覆盖200多个国家和地区的地图数据,支持70多种语言。使用此 SDK,您可以轻松地将基于地图的功能集成到您的 HarmonyOs 应用程序中。
海拥
2022/10/31
1.1K0
将华为地图套件集成到HarmonyOs可穿戴设备应用中

相似问题

我可以在我所在的adminclass中找到一个类吗?

12

我可以在Python中找到javascript的结果吗?

25

如何在我的.bashrc中找到我所在的主机?

30

获取在查询中找到的类别

10

我可以在ActionExecutingContext对象中找到请求类型吗

11
添加站长 进交流群

领取专属 10元无门槛券

AI混元助手 在线答疑

扫码加入开发者社群
关注 腾讯云开发者公众号

洞察 腾讯核心技术

剖析业界实践案例

扫码关注腾讯云开发者公众号
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
查看详情【社区公告】 技术创作特训营有奖征文