0.0
No commit activity in last 3 years
No release in over 3 years
Rails plugin to integrate Jasmine, Require.js and Karma.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8
~> 10.0
>= 3.2.0

Runtime

>= 2.2.0
 Project Readme

Jasmine + Require.js + Karma

Rails plugin to integrate Jasmine, Require.js and Karma.

Gem Version

Installation

Add this line to your Rails application's Gemfile:

gem 'jasmine-rjs', group: [:development, :test]         # Jasmine testing
gem 'requirejs-rails'                                   # For helper methods and rake tasks

And then execute:

rails g jasmine:install                         # Install default jasmine configuration
npm install karma karma-cli \
            karma-jasmine karma-requirejs \
            karma-phantomjs-launcher -g         # To test with karma

Usage

To start karma watcher:

rake jasmine:karma

To test from cli:

rake jasmine:ci

Configuration

To override karma configuration, create file karma.conf.js:

module.exports = function(config) {
   config.set({
       logLevel: config.LOG_INFO,
       browsers: ['Chrome', 'PhantomJS']
   });
};

Contributing

  1. Fork it ( https://github.com/siddick/jasmine-rjs/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request