- Ensure that Node.js is installed.
npm installto ensure the required dependencies are installed.
npm run buildto build Ember.js. The builds will be placed in the
How to Run Unit Tests
Pull requests should pass the Ember.js unit tests. Do the following to run these tests.
Follow the setup steps listed above under Building Ember.js.
To start the development server, run
To run all tests, visit http://localhost:4200/.
To test a specific package, visit
PACKAGE_NAMEwith the name of the package you want to test. For example:
To test multiple packages, you can separate them with commas.
You can also pass
jquery=VERSION in the test URL to test different
versions of jQuery.
From the CLI
Install phantomjs from http://phantomjs.org.
npm testto run a basic test suite or run
TEST_SUITE=all npm testto run a more comprehensive suite.
ember test --server
- connect the browsers you want
- if phantom didn't connect automatically, you can run
To run a specific browser, you can use the
ember test --server --launch SL_Firefox_Current
ember test --launch SL_Firefox_Current