wix / Detox

Gray box end-to-end testing and automation framework for mobile apps
https://wix.github.io/Detox/
MIT License
11.23k stars 1.92k forks source link

Detox tests timeout on fresh project setup with Expo #1009

Closed bschnelle closed 6 years ago

bschnelle commented 6 years ago

Description

I created a new project with create-react-native-app, added detox, detox-expo-helpers, and mocha, initialized the test directory using detox init -r mocha, updated the beforeEach hook to use reloadApp from detox-expo-helpers, and modified the app and default tests to one that should pass, but the test times out every time. The app successfully runs and opens in the simulator and I even tried adding expect(true).toBe(true) as the only assertion and that times out as well. Also tried with Jest and ran into the same issue.

Steps to Reproduce

I've made the repo available for reference and the only steps needed to replicate are to add /bin/Exponent.app, run yarn && yarn start, then run detox test from a different terminal.

Detox, Node, Device, Xcode and macOS Versions

Device and verbose Detox logs

node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim --loglevel trace     --grep :android: --invert     --artifacts-location "artifacts/ios.sim.2018-10-30 13-56-37Z"

detox[42933] INFO:  [DetoxServer.js] server listening on localhost:63864...
detox[42933] DEBUG: [AsyncWebSocket.js/WEBSOCKET_OPEN] opened web socket to: ws://localhost:63864
detox[42933] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"login","params":{"sessionId":"bcd34fe7-927a-9b31-7ebb-1cd61cea91c1","role":"tester"},"messageId":0}
detox[42933] DEBUG: [DetoxServer.js/LOGIN] role=tester, sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1
detox[42933] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=tester, sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1
detox[42933] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"loginSuccess","params":{"sessionId":"bcd34fe7-927a-9b31-7ebb-1cd61cea91c1","role":"tester"},"messageId":0}

detox[42933] DEBUG: [exec.js/EXEC_CMD, #0] /usr/bin/xcrun simctl list -j
detox[42933] TRACE: [exec.js/EXEC_SUCCESS, #0] {
  "devicetypes" : [
    {
      "name" : "iPhone 4s",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-4s"
    },
    {
      "name" : "iPhone 5",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-5"
    },
    {
      "name" : "iPhone 5s",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-5s"
    },
    {
      "name" : "iPhone 6",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6"
    },
    {
      "name" : "iPhone 6 Plus",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus"
    },
    {
      "name" : "iPhone 6s",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s"
    },
    {
      "name" : "iPhone 6s Plus",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-6s-Plus"
    },
    {
      "name" : "iPhone 7",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7"
    },
    {
      "name" : "iPhone 7 Plus",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-7-Plus"
    },
    {
      "name" : "iPhone 8",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8"
    },
    {
      "name" : "iPhone 8 Plus",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8-Plus"
    },
    {
      "name" : "iPhone SE",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-SE"
    },
    {
      "name" : "iPhone X",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-X"
    },
    {
      "name" : "iPhone XR",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XR"
    },
    {
      "name" : "iPhone XS",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS"
    },
    {
      "name" : "iPhone XS Max",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-XS-Max"
    },
    {
      "name" : "iPad 2",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-2"
    },
    {
      "name" : "iPad Retina",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Retina"
    },
    {
      "name" : "iPad Air",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air"
    },
    {
      "name" : "iPad Air 2",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Air-2"
    },
    {
      "name" : "iPad (5th generation)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--5th-generation-"
    },
    {
      "name" : "iPad Pro (9.7-inch)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--9-7-inch-"
    },
    {
      "name" : "iPad Pro (12.9-inch)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro"
    },
    {
      "name" : "iPad Pro (12.9-inch) (2nd generation)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--12-9-inch---2nd-generation-"
    },
    {
      "name" : "iPad Pro (10.5-inch)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad-Pro--10-5-inch-"
    },
    {
      "name" : "iPad (6th generation)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPad--6th-generation-"
    },
    {
      "name" : "Apple TV",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-1080p"
    },
    {
      "name" : "Apple TV 4K",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-4K"
    },
    {
      "name" : "Apple TV 4K (at 1080p)",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-TV-4K-1080p"
    },
    {
      "name" : "Apple Watch - 38mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-38mm"
    },
    {
      "name" : "Apple Watch - 42mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-42mm"
    },
    {
      "name" : "Apple Watch Series 2 - 38mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-38mm"
    },
    {
      "name" : "Apple Watch Series 2 - 42mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-2-42mm"
    },
    {
      "name" : "Apple Watch Series 3 - 38mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-38mm"
    },
    {
      "name" : "Apple Watch Series 3 - 42mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-3-42mm"
    },
    {
      "name" : "Apple Watch Series 4 - 40mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-40mm"
    },
    {
      "name" : "Apple Watch Series 4 - 44mm",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.Apple-Watch-Series-4-44mm"
    }
  ],
  "runtimes" : [
    {
      "buildversion" : "16A366",
      "availability" : "(available)",
      "name" : "iOS 12.0",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-12-0",
      "version" : "12.0"
    },
    {
      "buildversion" : "16J364",
      "availability" : "(available)",
      "name" : "tvOS 12.0",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.tvOS-12-0",
      "version" : "12.0"
    },
    {
      "buildversion" : "16R363",
      "availability" : "(available)",
      "name" : "watchOS 5.0",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.watchOS-5-0",
      "version" : "5.0"
    }
  ],
  "devices" : {
    "com.apple.CoreSimulator.SimRuntime.tvOS-11-4" : [
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple TV",
        "udid" : "C82E26DD-5642-4C7D-8E6E-204E07498BF7"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple TV 4K",
        "udid" : "0578BFDC-D3AB-41B4-A2BE-FE86EB617E0E"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple TV 4K (at 1080p)",
        "udid" : "25775973-F7EF-4D78-B3E9-2755F3813D3F"
      }
    ],
    "com.apple.CoreSimulator.SimRuntime.watchOS-4-3" : [
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple Watch - 38mm",
        "udid" : "E615E0C4-2C61-4A18-9849-95C999157AE0"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple Watch - 42mm",
        "udid" : "B67CFA7A-73B5-4525-931B-4930ABEC5402"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple Watch Series 2 - 38mm",
        "udid" : "9ED2332C-976E-49C9-B328-B9A54ED7724E"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple Watch Series 2 - 42mm",
        "udid" : "C3BB67BA-3BBC-4880-9339-26241D90ACAC"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple Watch Series 3 - 38mm",
        "udid" : "023DD524-FE56-4500-9675-CFB62891F4F8"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "Apple Watch Series 3 - 42mm",
        "udid" : "CE872670-70BE-4A07-91EF-914113A84F1A"
      }
    ],
    "tvOS 12.0" : [
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple TV",
        "udid" : "6F944892-58E9-4E91-8C99-3876B3CFC1C3"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple TV 4K",
        "udid" : "78B863EB-C3E8-4165-97D6-D5F8B6D558EE"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple TV 4K (at 1080p)",
        "udid" : "1E0CB5C6-B640-4CFA-97A2-70F256E5EF70"
      }
    ],
    "com.apple.CoreSimulator.SimRuntime.iOS-11-4" : [
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPhone 5s",
        "udid" : "7AB22220-5E4E-4B24-94B5-684D45541C42"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPhone 6",
        "udid" : "6E5611F2-9235-431A-ABA3-853B5AC6A7A0"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPhone 6 Plus",
        "udid" : "77B38248-1FFB-4195-B3CA-B83EE7151299"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPhone 6s",
        "udid" : "F77B2BA1-DA4A-416F-8293-593AEDB29CFD"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPhone 6s Plus",
        "udid" : "7DCF9017-A3A6-4E6B-8D31-D1B919B90FDE"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPhone 7",
        "udid" : "B0C7AC97-8BF4-426D-BE68-60B9B9EC7239"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPhone 7 Plus",
        "udid" : "04A66C09-F578-406E-A98B-D4701A9C7E77"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPhone 8",
        "udid" : "A88DC142-845F-44A4-B488-53BE84B4D05C"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPhone 8 Plus",
        "udid" : "5F4FCAF7-4B8D-41A2-BECF-5E9317AC0CF4"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPhone SE",
        "udid" : "F185002D-C17B-4E72-9E67-A0341B3855E9"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPhone X",
        "udid" : "FBC808BF-4A70-4028-B212-2D57DE423216"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPad Air",
        "udid" : "424D1E5D-3EC4-4560-BA42-410D431CD1AD"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPad Air 2",
        "udid" : "4FD3D18A-5AC3-40CE-8C06-6C103BD2C0C0"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPad (5th generation)",
        "udid" : "1976FA03-8573-466A-9298-5DF857D62B8F"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPad Pro (9.7-inch)",
        "udid" : "3BF12731-27BC-44D9-A85A-79B51A343009"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPad Pro (12.9-inch)",
        "udid" : "74FBC711-39BD-4353-A1D1-DE922FD47AD7"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPad Pro (12.9-inch) (2nd generation)",
        "udid" : "1BDF84AD-31E3-4CA9-B90E-8926FB0C6A9C"
      },
      {
        "state" : "Shutdown",
        "availability" : " (unavailable, runtime profile not found)",
        "name" : "iPad Pro (10.5-inch)",
        "udid" : "1C48CEC8-6FA1-4721-A501-040066EF7A8E"
      }
    ],
    "iOS 12.0" : [
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 5s",
        "udid" : "CEB05DBA-2AFE-4AE5-980B-3D78C9582DDE"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6",
        "udid" : "6A708867-4D73-4CD7-B918-4BD287FCDC60"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6 Plus",
        "udid" : "EB4E9499-EFBD-47D2-B99E-84E07DF7C33E"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6s",
        "udid" : "B9D2BAC6-19B9-4818-9A6D-C03F8EBC6DAF"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 6s Plus",
        "udid" : "C1DD43E8-465C-4834-8D87-F50B98E95B30"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 7",
        "udid" : "F0A26920-68ED-4181-8961-EF71588610FC"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 7 Plus",
        "udid" : "3D235E7E-04DB-48C7-9E13-18731F27AE96"
      },
      {
        "state" : "Booted",
        "availability" : "(available)",
        "name" : "iPhone 8",
        "udid" : "3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone 8 Plus",
        "udid" : "56093E8E-1530-41A8-B321-0BE886ACDDF9"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone SE",
        "udid" : "4F799403-1639-42BC-8BA4-6EE8E2374CFB"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone X",
        "udid" : "A1C5E1AC-4A7F-4118-A308-F5D789D779D4"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone XR",
        "udid" : "C56BB020-27BB-4759-AC9E-EB6B8C174FC0"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone XS",
        "udid" : "5C3310ED-AF6C-4626-81DA-1E1B42F4ED2A"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPhone XS Max",
        "udid" : "0842FC3A-1453-4F7F-86E0-148A2B994AA8"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Air",
        "udid" : "80EAF821-46F4-49D8-96D1-BA53F80414A2"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Air 2",
        "udid" : "1821A44A-9B8F-49DA-9D17-67B119AECAEA"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad (5th generation)",
        "udid" : "A68E3B37-7E65-4A29-8DB5-CF6047995230"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (9.7-inch)",
        "udid" : "DB978059-87EF-4BE5-8B9C-D0CDCACA2CF1"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (12.9-inch)",
        "udid" : "F65A62D4-FC60-4DC5-B5E7-0EFD5E7596DA"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (12.9-inch) (2nd generation)",
        "udid" : "CFF8C538-BC03-4D69-A130-FA9D32019F32"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad Pro (10.5-inch)",
        "udid" : "47FB70D1-890C-4AA9-82C8-C52F883E76C5"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "iPad (6th generation)",
        "udid" : "0503EB06-6048-470F-B2AF-4EE579687E76"
      }
    ],
    "watchOS 5.0" : [
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch Series 2 - 38mm",
        "udid" : "E358E5AA-919D-4C83-B28E-52EE7373289E"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch Series 2 - 42mm",
        "udid" : "87F1F092-6622-4258-87AD-5DEF3E027D32"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch Series 3 - 38mm",
        "udid" : "5747D196-AE05-4294-8624-AC5CC073C82D"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch Series 3 - 42mm",
        "udid" : "C9DDC18B-F413-47B3-BF74-35E176CE08DE"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch Series 4 - 40mm",
        "udid" : "2B2341A1-2266-4C2D-8B32-18BE75A45560"
      },
      {
        "state" : "Shutdown",
        "availability" : "(available)",
        "name" : "Apple Watch Series 4 - 44mm",
        "udid" : "B6E70F83-66EB-4306-815F-F33739DEE417"
      }
    ]
  },
  "pairs" : {
    "79FA2DF9-B4EE-4EDD-8F6E-3A6DE3479F60" : {
      "watch" : {
        "name" : "Apple Watch Series 4 - 44mm",
        "udid" : "B6E70F83-66EB-4306-815F-F33739DEE417",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone XS Max",
        "udid" : "0842FC3A-1453-4F7F-86E0-148A2B994AA8",
        "state" : "Shutdown"
      },
      "state" : "(active, disconnected)"
    },
    "088AC4EF-D0A5-4310-974D-E6B41DB8C83C" : {
      "watch" : {
        "name" : "Apple Watch Series 2 - 38mm",
        "udid" : "9ED2332C-976E-49C9-B328-B9A54ED7724E",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone 7",
        "udid" : "B0C7AC97-8BF4-426D-BE68-60B9B9EC7239",
        "state" : "Shutdown"
      },
      "state" : "(unavailable)"
    },
    "B6DB2C9D-72E8-4BCD-98F9-722723FC14D7" : {
      "watch" : {
        "name" : "Apple Watch Series 4 - 40mm",
        "udid" : "2B2341A1-2266-4C2D-8B32-18BE75A45560",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone XS",
        "udid" : "5C3310ED-AF6C-4626-81DA-1E1B42F4ED2A",
        "state" : "Shutdown"
      },
      "state" : "(active, disconnected)"
    },
    "55CA23D8-20D8-446B-B564-28FF707A85CA" : {
      "watch" : {
        "name" : "Apple Watch Series 2 - 42mm",
        "udid" : "C3BB67BA-3BBC-4880-9339-26241D90ACAC",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone 7 Plus",
        "udid" : "04A66C09-F578-406E-A98B-D4701A9C7E77",
        "state" : "Shutdown"
      },
      "state" : "(unavailable)"
    },
    "416CFEDC-1D97-4C68-8144-3A47A4FD7CD2" : {
      "watch" : {
        "name" : "Apple Watch Series 3 - 42mm",
        "udid" : "CE872670-70BE-4A07-91EF-914113A84F1A",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone 8 Plus",
        "udid" : "5F4FCAF7-4B8D-41A2-BECF-5E9317AC0CF4",
        "state" : "Shutdown"
      },
      "state" : "(unavailable)"
    },
    "6FAC7E8D-3A9E-4A68-B94B-BC4DDD891022" : {
      "watch" : {
        "name" : "Apple Watch Series 3 - 38mm",
        "udid" : "023DD524-FE56-4500-9675-CFB62891F4F8",
        "state" : "Shutdown"
      },
      "phone" : {
        "name" : "iPhone 8",
        "udid" : "A88DC142-845F-44A4-B488-53BE84B4D05C",
        "state" : "Shutdown"
      },
      "state" : "(unavailable)"
    }
  }
}

detox[42933] DEBUG: [exec.js/EXEC_CMD, #1] applesimutils --list --byType "iPhone 8" --byOS "12.0"
detox[42933] DEBUG: [exec.js/EXEC_TRY, #1] Searching for device matching iPhone 8...
detox[42933] TRACE: [exec.js/EXEC_SUCCESS, #1] [
  {
    "deviceType" : {
      "name" : "iPhone 8",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8"
    },
    "state" : "Booted",
    "availability" : "(available)",
    "name" : "iPhone 8",
    "udid" : "3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD",
    "os" : {
      "version" : "12.0",
      "availability" : "(available)",
      "name" : "iOS 12.0",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-12-0",
      "buildversion" : "16A366"
    }
  }
]

detox[42933] DEBUG: [exec.js/EXEC_CMD, #2] applesimutils --list --byId "3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD"
detox[42933] TRACE: [exec.js/EXEC_SUCCESS, #2] [
  {
    "deviceType" : {
      "name" : "iPhone 8",
      "identifier" : "com.apple.CoreSimulator.SimDeviceType.iPhone-8"
    },
    "state" : "Booted",
    "availability" : "(available)",
    "name" : "iPhone 8",
    "udid" : "3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD",
    "os" : {
      "version" : "12.0",
      "availability" : "(available)",
      "name" : "iOS 12.0",
      "identifier" : "com.apple.CoreSimulator.SimRuntime.iOS-12-0",
      "buildversion" : "16A366"
    }
  }
]

detox[42933] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBootDevice({ coldBoot: false,
  deviceId: '3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD' })
detox[42933] DEBUG: [exec.js/EXEC_CMD, #3] /usr/bin/xcrun simctl uninstall 3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD host.exp.Exponent
detox[42933] DEBUG: [exec.js/EXEC_TRY, #3] Uninstalling host.exp.Exponent...
detox[42933] TRACE: [exec.js/EXEC_SUCCESS, #3]
detox[42933] DEBUG: [exec.js/EXEC_SUCCESS, #3] host.exp.Exponent uninstalled
detox[42933] DEBUG: [exec.js/EXEC_CMD, #4] /usr/bin/xcrun simctl install 3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD "/Users/benjaminschnelle/dev/ExpoDetoxTest/bin/Exponent.app"
detox[42933] DEBUG: [exec.js/EXEC_TRY, #4] Installing /Users/benjaminschnelle/dev/ExpoDetoxTest/bin/Exponent.app...
detox[42933] DEBUG: [exec.js/EXEC_TRY, #4] Installing /Users/benjaminschnelle/dev/ExpoDetoxTest/bin/Exponent.app...
detox[42933] TRACE: [exec.js/EXEC_SUCCESS, #4]
detox[42933] DEBUG: [exec.js/EXEC_SUCCESS, #4] /Users/benjaminschnelle/dev/ExpoDetoxTest/bin/Exponent.app installed
detox[42933] DEBUG: [exec.js/EXEC_CMD, #5] /usr/bin/xcrun simctl terminate 3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD host.exp.Exponent
detox[42933] DEBUG: [exec.js/EXEC_TRY, #5] Terminating host.exp.Exponent...
detox[42933] TRACE: [exec.js/EXEC_SUCCESS, #5]
detox[42933] DEBUG: [exec.js/EXEC_SUCCESS, #5] host.exp.Exponent terminated
detox[42933] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBeforeLaunchApp({ bundleId: 'host.exp.Exponent',
  deviceId: '3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD',
  launchArgs:
   { '-detoxServer': 'ws://localhost:63864',
     '-detoxSessionId': 'bcd34fe7-927a-9b31-7ebb-1cd61cea91c1' } })
detox[42933] DEBUG: [exec.js/EXEC_CMD, #6] /bin/cat /dev/null >/Users/benjaminschnelle/Library/Developer/CoreSimulator/Devices/3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD/data/tmp/detox.last_launch_app_log.out 2>/Users/benjaminschnelle/Library/Developer/CoreSimulator/Devices/3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD/data/tmp/detox.last_launch_app_log.err && SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/benjaminschnelle/Library/Detox/ios/a486f98667a3678c014a98c089b00d53d6d66206/Detox.framework/Detox" /usr/bin/xcrun simctl launch --stdout=/tmp/detox.last_launch_app_log.out --stderr=/tmp/detox.last_launch_app_log.err 3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD host.exp.Exponent --args -detoxServer ws://localhost:63864 -detoxSessionId bcd34fe7-927a-9b31-7ebb-1cd61cea91c1
detox[42933] DEBUG: [exec.js/EXEC_TRY, #6] Launching host.exp.Exponent...
detox[42933] TRACE: [exec.js/EXEC_SUCCESS, #6] host.exp.Exponent: 43019

detox[42933] DEBUG: [exec.js/EXEC_SUCCESS, #6] host.exp.Exponent launched. The stdout and stderr logs were recreated, you can watch them with:
        tail -F /Users/benjaminschnelle/Library/Developer/CoreSimulator/Devices/3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD/data/tmp/detox.last_launch_app_log.{out,err}
detox[43019] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onLaunchApp({ bundleId: 'host.exp.Exponent',
  deviceId: '3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD',
  launchArgs:
   { '-detoxServer': 'ws://localhost:63864',
     '-detoxSessionId': 'bcd34fe7-927a-9b31-7ebb-1cd61cea91c1' },
  pid: 43019 })
detox[42933] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"isReady","params":{},"messageId":-1000}
detox[42933] TRACE: [DetoxServer.js/MESSAGE] role=tester action=isReady (sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1)
detox[42933] DEBUG: [DetoxServer.js/CANNOT_FORWARD] role=testee not connected, cannot fw action (sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1)
detox[42933] DEBUG: [DetoxServer.js/LOGIN] role=testee, sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1
detox[42933] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=testee, sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1
detox[42933] TRACE: [DetoxServer.js/MESSAGE] role=testee action=ready (sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1)
detox[42933] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"ready","messageId":-1000,"params":{}}

detox[42933] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBeforeAll()
  Example
detox[42933] TRACE: [Detox.js/DETOX_BEFORE_EACH] running test: "Example should have welcome screen"
detox[42933] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBeforeEach({ title: 'should have welcome screen',
  fullName: 'Example should have welcome screen',
  status: 'running' })
detox[42933] DEBUG: [exec.js/EXEC_CMD, #7] /usr/bin/xcrun simctl terminate 3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD host.exp.Exponent
detox[42933] DEBUG: [exec.js/EXEC_TRY, #7] Terminating host.exp.Exponent...
detox[42933] TRACE: [exec.js/EXEC_SUCCESS, #7]
detox[42933] DEBUG: [exec.js/EXEC_SUCCESS, #7] host.exp.Exponent terminated
detox[42933] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onBeforeLaunchApp({ bundleId: 'host.exp.Exponent',
  deviceId: '3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD',
  launchArgs:
   { '-detoxServer': 'ws://localhost:63864',
     '-detoxSessionId': 'bcd34fe7-927a-9b31-7ebb-1cd61cea91c1',
     '-EXKernelDisableNuxDefaultsKey': true,
     '-detoxURLOverride': 'exp://192.168.7.83:19000',
     '-detoxSourceAppOverride': 'host.exp.exponent' } })
detox[42933] DEBUG: [DetoxServer.js/DISCONNECT] role=testee, sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1
detox[42933] DEBUG: [exec.js/EXEC_CMD, #8] /bin/cat /dev/null >/Users/benjaminschnelle/Library/Developer/CoreSimulator/Devices/3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD/data/tmp/detox.last_launch_app_log.out 2>/Users/benjaminschnelle/Library/Developer/CoreSimulator/Devices/3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD/data/tmp/detox.last_launch_app_log.err && SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/benjaminschnelle/Library/Detox/ios/a486f98667a3678c014a98c089b00d53d6d66206/Detox.framework/Detox" /usr/bin/xcrun simctl launch --stdout=/tmp/detox.last_launch_app_log.out --stderr=/tmp/detox.last_launch_app_log.err 3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD host.exp.Exponent --args -detoxServer ws://localhost:63864 -detoxSessionId bcd34fe7-927a-9b31-7ebb-1cd61cea91c1 -EXKernelDisableNuxDefaultsKey true -detoxURLOverride exp://192.168.7.83:19000 -detoxSourceAppOverride host.exp.exponent
detox[42933] DEBUG: [exec.js/EXEC_TRY, #8] Launching host.exp.Exponent...
detox[42933] TRACE: [exec.js/EXEC_SUCCESS, #8] host.exp.Exponent: 43039

detox[42933] DEBUG: [exec.js/EXEC_SUCCESS, #8] host.exp.Exponent launched. The stdout and stderr logs were recreated, you can watch them with:
        tail -F /Users/benjaminschnelle/Library/Developer/CoreSimulator/Devices/3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD/data/tmp/detox.last_launch_app_log.{out,err}
detox[43039] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onLaunchApp({ bundleId: 'host.exp.Exponent',
  deviceId: '3D17BD4D-D0B8-4A81-AECC-6B13FDE1E0DD',
  launchArgs:
   { '-detoxServer': 'ws://localhost:63864',
     '-detoxSessionId': 'bcd34fe7-927a-9b31-7ebb-1cd61cea91c1',
     '-EXKernelDisableNuxDefaultsKey': true,
     '-detoxURLOverride': 'exp://192.168.7.83:19000',
     '-detoxSourceAppOverride': 'host.exp.exponent' },
  pid: 43039 })
detox[42933] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"isReady","params":{},"messageId":-1000}
detox[42933] TRACE: [DetoxServer.js/MESSAGE] role=tester action=isReady (sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1)
detox[42933] DEBUG: [DetoxServer.js/CANNOT_FORWARD] role=testee not connected, cannot fw action (sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1)
detox[42933] DEBUG: [DetoxServer.js/LOGIN] role=testee, sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1
detox[42933] DEBUG: [DetoxServer.js/LOGIN_SUCCESS] role=testee, sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1
    1) "before each" hook for "should have welcome screen"

  0 passing (2m)
  1 failing

  1) Example
       "before each" hook for "should have welcome screen":
     Error: Timeout of 120000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/benjaminschnelle/dev/ExpoDetoxTest/e2e/firstTest.spec.js)

detox[42933] TRACE: [Detox.js/DETOX_AFTER_EACH] failed test: "Example should have welcome screen"
detox[42933] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onAfterEach({ title: 'should have welcome screen',
  fullName: 'Example should have welcome screen',
  status: 'failed' })

detox[42933] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onAfterAll()
detox[42933] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"cleanup","params":{"stopRunner":true},"messageId":1}
detox[42933] TRACE: [DetoxServer.js/MESSAGE] role=tester action=cleanup (sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1)
detox[42933] TRACE: [DetoxServer.js/MESSAGE] role=testee action=cleanupDone (sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1)
detox[42933] TRACE: [AsyncWebSocket.js/WEBSOCKET_MESSAGE] {"type":"cleanupDone","messageId":1,"params":{}}

detox[42933] DEBUG: [DetoxServer.js/DISCONNECT] role=tester, sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1
detox[42933] DEBUG: [DetoxServer.js/DISCONNECT] role=testee, sessionId=bcd34fe7-927a-9b31-7ebb-1cd61cea91c1
child_process.js:645
    throw err;
    ^

Error: Command failed: node_modules/.bin/mocha e2e --opts e2e/mocha.opts --configuration ios.sim --loglevel trace     --grep :android: --invert     --artifacts-location "artifacts/ios.sim.2018-10-30 13-56-37Z"
    at checkExecSyncError (child_process.js:602:13)
    at Object.execSync (child_process.js:642:13)
    at runMocha (/Users/benjaminschnelle/dev/ExpoDetoxTest/node_modules/detox/local-cli/detox-test.js:129:6)
    at run (/Users/benjaminschnelle/dev/ExpoDetoxTest/node_modules/detox/local-cli/detox-test.js:82:7)
    at Object.<anonymous> (/Users/benjaminschnelle/dev/ExpoDetoxTest/node_modules/detox/local-cli/detox-test.js:217:1)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
LeoNatan commented 6 years ago

Looks like a duplicate of #842

Closing in favor of that issue.