Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Acceptance testing in Ember.js

Acceptance testing in Ember.js

Balint Erdi

May 08, 2014
Tweet

More Decks by Balint Erdi

Other Decks in Technology

Transcript

  1. TO MOCK OR NOT TO MOCK? To mock!! Drugs are

    BAAD! Using the real server is slow & an added dependency is even more BAAAAD
  2. IC-AJAX Very simple interface! Supports returning server errors! Ships with

    the ember-app-kit (EAK) and the future-proof ember-cli
  3. BUT WAIT! All these (async) helpers return wait(), a promise

    that waits for all async operations to finish
  4. RUN’EM! via qunit in the browser! via testem from the

    command line! EAK has both these already set up