Corey's Tumblr Ramblings RSS

Archive

Feb
3rd
Wed
permalink

Testing Javascript: Too Easy Not To Do It

As web applications become more common, more and more code is written in javascript. Automated testing and Test-Driving the server-side code is well-accepted, but testing javascript is still a bit of a mystery to a lot of people.

In this 1-day tutorial, we will build a browser-based application in javascript using a test-driven development (TDD) approach. We will use the popular JQuery javascript framework and the Blue Ridge javascript testing system. At the end of the day, participants will be able to

- Install and configure Blue Ridge

- Write tests using the ScrewUnit testing framework (bundled with Blue Ridge)

- Customize ScrewUnit, including writing helper functions and custom matchers

- Create test doubles for
- injecting test data into your functions
- setting method call expectations

This course will be hands-on, focusing on the practical considerations of testing javascript. Participants will be expected to have a general understanding of and basic experience using the principles of test-driven development.

Cost: $50 - $100 per person (still looking at this)

Class Size: 10 - 15 people

Project Date: August, 2010

Location: Most likely Chicago (since that is where I live)

  1. coreyhaines posted this