943 B
943 B
Debugging detox in Xcode
-
Drag
Detox.frameworkfromnode_modules/detox/Detox.frameworkto your project. -
Edit your project scheme and add the following arguments to Arguments Passes On Launch:
-detoxServer ws://localhost:8099 -setoxSessionId test -
Edit detox config in package.json: add a custom session
-
Add a configuration with
type:ios.noneto your configurations."configurations": { ... "xcode": { "type": "ios.none", "name": "iPhone 7 Plus" }NOTE: This configuration will not handle simulator and application lifecycle, they will have to be provided manually (via Xcode play button, or
react-native run-ios). -
Run detox server manually
detox run-server -
Run
detox test --configuration xcodeNOTE: tests that expect the application to be restarted via
device.relaunchApp()will fail.