Skip to content

Commit

Permalink
Document rake ember:test
Browse files Browse the repository at this point in the history
The gem exposes the `ember:test` Rake task to execute Ember's test suite.

Without proper documentation, it isn't clear that extending a host
application's test suite to execute `ember:test` is a Good Idea ™️.
  • Loading branch information
seanpdoyle committed Nov 9, 2015
1 parent 2c25935 commit 4b496c9
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,20 @@ example, `/ember-tests`) and the name of the Ember app.
For example, to view tests of the `frontend` app, visit
`http://localhost:3000/ember-tests/frontend`.

### Integrating with Rake

EmberCLI Rails exposes the `ember:test` Rake task to execute Ember's test suite.

If you're using Rake to run your test suite, make sure to configure your test
task to depend on `ember:test`.

For example, to configure a bare `rake` command to run both RSpec and Ember test
suites, configure the `default` task to depend on both `spec` and `ember:test`.

```rb
task default: [:spec, "ember:test"]
```

## Serving from multi-process servers in development

If you're using a multi-process server ([Puma], [Unicorn], etc.) in development,
Expand Down

0 comments on commit 4b496c9

Please sign in to comment.