Skip to content

Commit

Permalink
Updated testing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Mar 7, 2012
1 parent 51fc0d6 commit fa68e11
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Expand Up @@ -108,15 +108,19 @@ therubyracer`.

# How to Run Unit Tests

## Setup

1. Install Ruby 1.9.2+. There are many resources on the web can help; one of the best is [rvm](http://rvm.beginrescueend.com/).

2. Install Bundler: `gem install bundler`

3. Run `bundle` inside the project root to install the gem dependencies.

4. To start the development server, run `bundle exec rackup`.
## In Your Browser

1. To start the development server, run `rackup`.

5. Then visit: `http://localhost:9292/tests/index.html?package=PACKAGE_NAME`. Replace `PACKAGE_NAME` with the name of the package you want to run. For example:
2. Then visit: `http://localhost:9292/tests/index.html?package=PACKAGE_NAME`. Replace `PACKAGE_NAME` with the name of the package you want to run. For example:

* [Ember.js Runtime](http://localhost:9292/tests/index.html?package=ember-runtime)
* [Ember.js Views](http://localhost:9292/tests/index.html?package=ember-views)
Expand All @@ -128,6 +132,16 @@ To run multiple packages, you can separate them with commas. You can run all the

You can also pass `jquery=VERSION` in the test URL to test different versions of jQuery. Default is 1.7.1.

## From the CLI

1. Install phantomjs from http://phantomjs.org

2. Run `rake test` to run a basic test suite or run `rake test[all]` to
run a more comprehensive suite.

3. (Mac OS X Only) Run `rake autotest` to automatically re-run tests
when any files are changed.

# Building API Docs

NOTE: Requires node.js.
Expand Down

0 comments on commit fa68e11

Please sign in to comment.