Sha256: cd85e1da4b36b31883d55af64b883864900596ce7e514450970c13f35e339213

Contents?: true

Size: 1.6 KB

Versions: 1

Compression:

Stored size: 1.6 KB

Contents

#Ichabod

Run JavaScript tests from the command line using a headless version of WebKit.

Features:

  * [Jasmine](http://pivotal.github.com/jasmine) tests support
  * [QUnit](http://docs.jquery.com/Qunit) tests support
  * Use Ruby methods from JavaScript

## Prerequisites

The only prerequisites are OSX and [macruby](http://www.macruby.org).

##Installation

    $ macgem install ichabod

Or, if you're using rvm:

    $ rvm use macruby
    $ gem install ichabod

## Usage
    
    ichabod ./your/file.html
    ichabod http://example.com
    
    ichabod --jasmine http://your-jasmine-test-page.html
    ichabod --qunit http://your-qunit-test-page.html

    ichabod --jasmin ./local-qunit-path/index.html
      xxxxxxxxxxxxxoxxxxxxxxxx
      
      - X failed because of xyz
      
## More Usage

    $ ichabod
    js> 1 + 1
    => 2
    js> function name() { return "ichabod!" }
    => undefined
    js> name
    => function name() { return "ichabod!" }
    js> name()
    => "ichabod!"
    js> Ruby.puts('Ruby, I presume.')
    Ruby, I presume.
    => undefined
    js> Ruby.File_read('hi.js')
    => "// this is hi.js\n"
    js> Ichabod.exit();
    
## Credit

Credit should go to the real author behind this - [Chris Wanstrath](https://github.com/defunkt) who wrote [Lyndon](https://github.com/defunkt/lyndon). Most of the code follows his original ideas, I've extended that to add test support and enhancements to the WebKit WebView. 

And thanks to my [tweeps](http://twitter.com/maccman) who suggested the name: knewter, tiegz, enriclluelles.

## Copyright

Copyright (c) 2011 Chris Wanstrath, Alex MacCaw under the MIT LICENSE.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ichabod-0.0.2 README.md