Seattle EmberJS Meetup April: Ember-Testing and Integration Testing in Ember
Table of Contents
- 1. Seattle EmberJS Meetup April
- 2. Ember-Testing
- 3. Ember Project from Scratch
- 3.1. Ember Rails Starter Kit
- 3.2. Using example using git clone
- 3.3. Abstracting out the routes with support for hbs routes
- 3.4. Create the store
- 3.5. Create the fixture
- 3.6. Set the context of the template
- 3.7. Provide some of the base controllers and feeds.
- 3.8. Add in a new view of a particular feed
- 3.9. Provide a model that defines the underlying object
- 3.10. Also supports belongs to relationship
- 3.11. Use setupController for initialization
- 3.12. Outcome
2. Ember-Testing
2.1. Examples
- https://github.com/jnicklas/capybara
- Selenium
2.2. Most issues come from async
This is stil something that is only provided based on polling.
// Define end for async
2.4. Based on QUnit
- Start with setup
- provide teardown
module('/conversations', {
'setup': function() {},
'teardown': function() {}
})
2.5. Outcome
Running inside an app assumes full stack is Ember.
3. Ember Project from Scratch
3.1. Ember Rails Starter Kit
This just creates an application and a minimal template.
- one template (handlebars)
- one JavaScript
3.2. Using example using git clone
This allows a fast build of all core templates rather than forcing past and testing.
3.4. Create the store
3.5. Create the fixture
3.6. Set the context of the template
Uses a nomenclature of feed_route: extending from Ember.Routes.
3.8. Add in a new view of a particular feed
This requires that we create a new router entry for viewing a particular feed.
A resource has a route. The path also supports the standard routing definition.
The resource would need a supporting template.
3.12. Outcome
Looks at escaping by default: {{{}}}; the amount of time spent in building new application in decomposition and the generation of new routes and linking when contrasted with the effort traditionally devoted in Spring applications is apparent. There linking and web work is usually more work than persistence and storage.