Loading…
This event has ended. View the official site or create your own event → Check it out
This event has ended. Create your own
View analytic
Friday, June 7 • 10:00am - 11:50am
Don’t Let the Server Have all the Fun. How Testing can Fill the Client Side with Unicorns and Rainbows. -G7

Sign up or log in to save this to your schedule and see who's attending!

The unit testing web developer population, in general, has been growing by leaps and bounds, but, so far, those gains haven’t been as steady on the client side. I’d like to address a few of the reasons why that is, and how we can change that by unit testing our client side application code as thoroughly as possible. Most unit testing examples focus on very straightforward imperative tests. I have seen many explanations of javascript unit testing that describe how to verify the logic behind a calculator or a form validation library, but not how to test a more complex, event triggered application. I’ll walk you through a simple unit tested backbone application and explain some design tips for effectively unit testing your code along the way. After that, I will explain how to effectively mock ajax requests and trigger ajax events from your unit tests. I will also be giving an introduction to the grunt build tool. I’ll show you how to setup grunt in such a way that your test output can be easily integrated with your continuous integration suite as well as run every time you change a file. Hopefully, eventually, we’ll all be able to have the confidence inspired by the green and red lights on a build monitor, on both sides of the great http divide.


Speakers
avatar for John Paul

John Paul

VP of Engineering, Avagen Ventures


Friday June 7, 2013 10:00am - 11:50am
Room 106
  • Session Code G7

Attendees (18)