ChrisInCambo / jsspec_ci

JSSpec command line runner made possible by Selenium remote control. Allows JSSpec suites to be easily run on multiple platforms and multiple browsers as part of a continuous integration process.

JSSpec CI

The program uses selenium remote control to get browsers on a selenium client to access a JSSpec spec runner via http. The Program then analyses the html and outputs the results to the spec console.

Usage

It's as simple as one, two, three

  1. Install and run selenium on a machine with the browsers and o/s combo you would like to test:
sudo gem install Selenium
selenium
  1. Allow access via http to your html spec runner:
cd /path/to/jspec_ci/JSSpec
python -m SimpleHTTPServer
  1. Run jsspec_ci:
cd /path/to/jsspec_ci
ruby jsspec_ci.rb 'http://localhost:8000/demo.html' 'http://localhost:4444' 'opera, firefox'

Notes

The current version of Selenium (1.1.14) has problems launching Firefox 3, a quick google will find many workarounds to this problem.

Details

Author: Chris Brown (mailto:chrisincambo@gmail.com) Copyright: Copyright (c) 2009 Chris Brown License: Distributes under the same terms as Ruby