I am writing integration and integration tests with the Ember.js application and I cannot connect to the server when the application is under testing. This means that I need to use the DS.FixtureAdapter to back up my data store.
But I'm not personally a fan of fixtures in large applications, because it is so difficult to find one set of fixtures that work with each test case. I prefer tools like factory_girl and the driver, which allow me to generate test data that is isolated from all other tests:
FactoryGirl.define do factory :user do name 'John Doe' date_of_birth { 21.years.ago } end end
Of course, factory_girl and the driver can also automatically create related models.
Is there an easy way to do this in Ember.js right now? Are there methods, conventions, or libraries that can make this easier? Googling has no real options yet.
source share