karma-ios-launcher

Karma launcher for the Xcode iOS Simulator

npm install karma-ios-launcher
1 downloads in the last day
19 downloads in the last week
158 downloads in the last month

karma-ios-launcher

Karma launcher for the Xcode iOS Simulator.

NPM version

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:

module.exports = (config) ->
  config.set

    # Start these browsers:
    browsers = [
      'iOS'
    ]

    # ...

Usage

Just run your tests!

$ karma start
INFO [karma]: Karma v0.9.3 server started at http://localhost:9876/
INFO [launcher]: Starting browser iOS
INFO [Mobile Safari 6.0.0 (iOS 6.1)]: Connected on socket id iDIO2uQQP4qe6dFRjn6p
Mobile Safari 6.0.0 (iOS 6.1): Executed 1 of 1 SUCCESS (0.219 secs / 0.063 secs)
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
npm loves you