Qunit::Runner
A ruby command line runner for Qunit tests using PhantomJS
Installation
Add this line to your application's Gemfile:
gem 'qunit-runner'
And then execute:
$ bundle
Or install it yourself as:
$ gem install qunit-runner
Usage
qunit-runner test \[--timeout=milleseconds\] URL
This will run a test suite located at the provided URL, giving an appropriate exit status and displaying test run progress and status.
API Usage
You can invoke the test runner from inside your application using the
Qunit::Runner
class. Initialize the runner with the test URL, and then run the
engine, optionally specifying a timeout.
url = "http://localhost:3000"
Qunit::Runner.new(url).run
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request