Karma launcher for the Xcode iOS Simulator
CoffeeScript JavaScript
Latest commit 3bb7fa2 Aug 16, 2013 @xdissent 0.0.3
Permalink
Failed to load latest commit information.
src Qified iosctrl Jun 30, 2013
.gitignore First Jun 29, 2013
.npmignore First Jun 29, 2013
LICENSE First Jun 29, 2013
README.md Update for karma 0.10 Aug 16, 2013
index.js First Jun 29, 2013
package.json 0.0.3 Aug 16, 2013

README.md

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