Skip to content

Run headless JavaScript tests for your Rails project with QUnit/QUnited

License

Notifications You must be signed in to change notification settings

aaronroyer/qunited-rails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qunited-rails runs headless QUnit tests with QUnited in your Rails 3 project.

Configuration

Add the following to your Gemfile in your Rails 3 project:

group :test, :development do
  gem 'qunited-rails'
end

The development group is necessary to run Rake tasks without having to type RAILS_ENV=test.

Next run Bundler to install the necessary gems.

$ bundle

Running Tests

$ bundle exec rake test:javascripts

Dependencies

Tests are run with PhantomJS if available, otherwise Rhino (Java) is used. This means you'll either need to have PhantomJS or Java (version 1.1 minimum) in your path to use qunited-rails.

License

qunited-rails is MIT licensed

About

Run headless JavaScript tests for your Rails project with QUnit/QUnited

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages