https://github.com/foodee/ember-test-helpers
https://github.com/foodee/ember-test-helpers
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/foodee/ember-test-helpers
- Owner: Foodee
- License: mit
- Created: 2016-10-13T23:03:07.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-15T19:49:02.000Z (over 7 years ago)
- Last Synced: 2025-01-21T20:48:54.790Z (over 1 year ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 17
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ember-test-helpers
This addon adds common test helpers to your Foodee Ember project.
## Installing
* `ember install git+ssh://git@github.com:Foodee/ember-test-helpers.git`
## Helpers
### `waitTime`
`waitTime(milliseconds)`
Will wait a specific amount of time in milliseconds before the test will continue with assertions.
### `waitUntil`
`waitUntil(selector)`
Will wait until a an element with the selector is found before continuing with assertions.
## Want to add some common test helpers?
* `git clone git@github.com:Foodee/ember-test-helpers.git` this repository
* `cd ember-test-helpers`
* `npm install`
* `bower install`
* Add helpers to `test-support/helpers/common`
**BE SURE TO ADD TESTS!**
A dummy app has been properly setup in /tests/dummy, this means you can start the app with `ember server` or `ember test` and it will allow you to run tests against the dummy app.

## Running Dummy App / Tests
### Dummy App
* `ember serve`
* Visit your app at [http://localhost:4200/tests](http://localhost:4200/tests).
**OR**
* `npm test` (Runs `ember try:each` to test your addon against multiple Ember versions)
* `ember test`
* `ember test --server`
## Building
* `ember build`
For more information on using ember-cli, visit [http://ember-cli.com/](http://ember-cli.com/).