Loading...
Loading...
Configure, run, or debug Detox on Limrun iOS simulators. Use when attaching the Limrun Detox runtime to an app, wiring Detox mediator connectivity, or validating app/tester connections over reverse tunnels.
npx skill4agent add limrun-inc/skills limrun-detox-testingdetox run-serverlim ios launch-app --runtime detoxlim ios reverse --help
lim ios launch-app --help# Start the Detox mediator locally.
npx detox run-server -p 8099 -l verbose
# Expose the mediator to the simulator.
lim ios reverse 57091:8099 --id <ios-id>
# Relaunch the app with the managed Detox runtime. Use the remote endpoint
# printed by `lim ios reverse`, not 127.0.0.1 on the user machine.
# --detox-version is optional when running from the project with node_modules/detox.
lim ios launch-app <bundle-id> \
--id <ios-id> \
--runtime detox \
--detox-server-url ws://<reverse-remote-host>:57091 \
--detox-session-id <session-id> \
--detox-version <detox-version>
# Run the tester with the same server/session.
npx detox test --no-startexamples/detox-iosnpx detox test --no-startnpx detox test --no-startexamples/detox-ios/.detoxrc.cjstype: '@limrun/detox/driver'DETOX_SERVERDETOX_SESSION_IDLIMRUN_IOS_IDLIMRUN_IOS_API_URLLIMRUN_IOS_TOKENexamples/detox-ios-l tracedetox run-servermodule.exports = {
testRunner: { args: { $0: 'jest' }, jest: { setupTimeout: 120000 } },
apps: { ios: { type: 'ios.app', binaryPath: 'unused-by-limrun' } },
devices: {
limrun: {
type: '@limrun/detox/driver',
device: { id: process.env.LIMRUN_IOS_ID },
},
},
configurations: {
'ios.limrun': {
device: 'limrun',
app: 'ios',
behavior: { init: { reinstallApp: false }, cleanup: { shutdownDevice: false } },
},
},
};lim ios launch-app <bundle-id> --runtime detox ...npx detox test --no-startdetox run-serverrole:"app"appConnected:truetesterConnected:true, appConnected:true--runtime detoxlim ios element-tree --id <ios-id>--runtime detox--detox-versiondetoxlim ios launch-appCannot forward the message to the Detox client.accessibilityIdentifier("greetingText")by.id('greetingText')by.text(...)lim ios element-treelim ios element-tree --id <ios-id>detox run-serverlim ios reverselim ios delete <ios-id>--id