$30 off During Our Annual Pro Sale. View Details »

Ember.js Testing Intro

Ember.js Testing Intro

Ember.BP May

Gabor Babicz

May 08, 2014
Tweet

More Decks by Gabor Babicz

Other Decks in Programming

Transcript

  1. How’s the dark side doing? Fine, thanks, glad you asked

    - Angular, since the very beginning
  2. Testing in Angular • Built with testing in mind from

    the ground up, and it shows • Their entire tutorial section comes with testing • A good role model to have • They have my admiration • Pushed client-side testing culture forward
  3. Why is it hard to test JS? • Testing async

    is harder in general • Ember is async-heavy. Probably more than most of the other frameworks • Lack of tooling is a big bottleneck
  4. How to test your Ember app? • First things first:

    RTM! • There is a section dedicated to testing in the guides • Comes with JSBin examples • Don’t forget to use the development build!
  5. How to test your Ember app? • First things first:

    RTM! • There is a section dedicated to testing in the guides • Comes with JSBin examples • Don’t forget to use the development build!
  6. Tooling • QUnit by default • ember-qunit • You can

    use Mocha, Jasmine as well • ember-mocha-adapter • Prefer BDD-style (describe/it)? Use qunit-bdd! • And please, please do development
 with EAK/ember-cli! • But it’s a good idea to know how to set up a simple JSBin
  7. Tooling • QUnit by default • ember-qunit • You can

    use Mocha, Jasmine as well • ember-mocha-adapter • Prefer BDD-style (describe/it)? Use qunit-bdd! • And please, please do development
 with EAK/ember-cli! • But it’s a good idea to know how to set up a simple JSBin
  8. Tooling • QUnit by default • ember-qunit • You can

    use Mocha, Jasmine as well • ember-mocha-adapter • Prefer BDD-style (describe/it)? Use qunit-bdd! • And please, please do development
 with EAK/ember-cli! • But it’s a good idea to know how to set up a simple JSBin
  9. Tooling • QUnit by default • ember-qunit • You can

    use Mocha, Jasmine as well • ember-mocha-adapter • Prefer BDD-style (describe/it)? Use qunit-bdd! • And please, please do development
 with EAK/ember-cli! • But it’s a good idea to know how to set up a simple JSBin
  10. Recap • It's no longer hard to test an Ember

    app • Excellent testing guides • Tooling has improved greatly • Use EAK/ember-cli for zero-config testing env • Happy testing!