Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Run headless JavaScript tests for your Rails project with QUnit/QUnited
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
.gitignore
Gemfile
MIT-LICENSE
README.md
Rakefile
qunited-rails.gemspec

README.md

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

Something went wrong with that request. Please try again.