karma-ios-launcher
Karma launcher for the Xcode iOS Simulator.
This Karma plugin adds a browser launcher for the Xcode iOS Simulator.
Requirements
You must have Xcode installed as well as the iOS Simulator.
Installation
Install the plugin from npm:
$ npm install karma-ios-launcher --save-dev
Or from Github:
$ npm install 'git+https://github.com/xdissent/karma-ios-launcher.git' --save-dev
Add iOS
to the browsers
key in your Karma configuration:
= configset # Start these browsers: browsers = 'iOS' # ...
Usage
Just run your tests!
$ karma startINFO [karma]: Karma v0.9.3 server started at http://localhost:9876/INFO [launcher]: Starting browser iOSINFO [Mobile Safari 6.0.0 ]: Connected on socket id iDIO2uQQP4qe6dFRjn6pMobile Safari 6.0.0 : Executed 1 of 1 SUCCESS TOTAL: 1 SUCCESS
If you'd like to see the debug output from iosctrl, set the DEBUG
environment variable to iosctrl:*
:
$ export DEBUG='iosctrl:*' # for bash
$ set -x DEBUG 'iosctrl:*' # for fish