TDD & JavaScript: Why & How to test your Views


With all the MV* frameworks that are out there (Ember, Angular, Backbone/Marionette, etc) more and more of our code is moving into the client. The front end is no longer just about making sure a button is enabled or applying styles. The user experience on web applications is very rich. With this emphasis on client side code, testing our JavaScript becomes more essential. But how do we test JavaScript? Is it really that much different than testing our server side code?

In this session we’ll talk a little bit about why we need to do TDD on our client code. After that, we’ll jump right into some actual code and practice what we just talked about. We’ll write some actual JavaScript using TDD.


Heartland Developer Conference 2014