Slide 5
Slide 5 text
Decisions, decisions
• Client-side test runner
• In browser and headless
• Client-side test framework
• TDD vs. BDD interfaces and assertions
Popular javascript test frameworks include QUnit, Mocha, Jasmine.
QUnit is used to test Ember itself, and is the most popular choice on the core team because of its speed and solid async support.
Mocha is very accessible and offers custom TDD and BDD interfaces. It works with the flexible Chai assertion library.
Jasmine has been extremely popular for the past few years, but seems to be slipping recently. It has awkward async support and has
not seen much activity lately. It is unique in that it runs tests in parallel, while Mocha and QUnit run them serially. I've found that
this can lead to non-deterministic test results with bugs that are tricky to isolate.
The framework in which you write your tests will probably be the most time consuming to refactor, since every one of your tests will
be written for that framework. Therefore, take some time to choose carefully.