add-memberalign-toparrow-leftarrow-rightbellblockcalendarcamerachatchevron-leftchevron-rightchevron-small-downchevron-upcircle-with-crosscomposecrossfacebookflagfolderglobegoogleimagesinstagramkeylocation-pinmedalmoremuplabelShape 3 + Rectangle 1pagepersonpluspollsImported LayersImported LayersImported LayersshieldstartwitterwinbackClosewinbackCompletewinbackDiscountyahoo

Saving Time and Sanity with Javascript Tests

Presenter: Ben Taitelbaum, CoshX Labs

So you've written your app and it works great in Chrome. The interaction is crisp, the workflow is solid, and you're excited to go into the demo... when you find out at the last minute that it has to be demoed in a different browser that you've never tested with. With 30 minutes left before the demo, you fire up the site in the new browser, only to be confronted with errors, nonfunctional forms, and widgets that seem to have a mind of their own.

This was the situation I was in at a hackathon a couple years ago, and I didn't sweat it. I had followed good Test-Driven Design (TDD) practices from the start, so I had a suite of qunit tests already in place to serve as regression tests. I simply pointed the new browser at the tests, saw which low-level functions weren't behaving as I had expected, and fixed them with time to spare.

Now, while getting to be a TDD superhero on a team is a cool experience, by far it's not the only benefit of having a solid test suite. Writing the tests themselves often leads to cleaner, more focused code, written at a faster pace. In this session we'll explore some useful testing tools, and go through some TDD examples of how to write good tests in javascript.

Location: Scitent Headquarters, 400 Preston Ave. Charlottesville. View Map

Join or login to comment.

  • L.Towle

    It appears you all had a good turnout last night and I'm glad. Please do include me in any discussions you have prior to the next meeting. I may find that you're all way over my head, but still, I'd like to get involved. Thanks.

    January 24, 2013

  • Ben T.

    Thanks everyone for coming out in the cold weather this evening. I had a great time, and am excited about this group! If you get a chance, I'd love some honest feedback (the best way we can grow as a group is to help each other improve): Slides are here:

    1 · January 23, 2013

  • L.Towle

    I can't come this evening and I'm sorry for ditching at the last minute like this. Please don't count me out for the next meeting.

    January 23, 2013

  • Gabe R.

    I wish I didn't have to miss this, but no time tonight... Let us know if anything from this meeting is posted afterward.

    January 23, 2013

  • Ron D.

    What's the plan for parking? Park in the same lot as Milli Joe?

    January 23, 2013

    • Ben T.

      yeah, there should be plenty of open spaces this time of day.

      January 23, 2013

    • Steve J.

      There's a parking lot next to the building (on the side opposite Wendy's) that's accessible from 4th St. SW or Ridge McIntire. That's where I've always parked.

      January 23, 2013

  • Erik H.

    Sorry to miss this. Parent duties prevail. Long live JavaScript!

    1 · January 23, 2013

24 went

Our Sponsors

  • ENSCO, Inc.

    Autonomous monitoring & web data management for the railroad industry.

  • Arqball

    Arqball is a small research and development lab in Charlottesville, VA.

  • ChartIQ

    Charting and data visualization solutions for capital markets

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy