Writing Testable JavaScript

This two-day course will help you incorporate tests into your JavaScript development workflow. At the end of the class, you will feel more confident in your ability to write testable JavaScript, and be able to incorporate testing into your development workflow.

Is this class right for you?

This course is for moderately experienced JavaScript developers who are comfortable with git and the command line. If you’re wondering whether this training is right for you, you may want to set up and work through js-assessment, a test-driven tool created by Rebecca Murphey, for evaluating your JavaScript skills. Participants in this training should be able to get most (if not all) of the tests to pass.

Agenda

This two-day course will get you up to speed on the testing concepts you need to understand as a front end developer. You’ll work with Node, jQuery, QUnit, Mocha, RequireJS, grunt, and more throughout the course. The training will be a mix of lecture, discussion, and hands-on exercises. Here are a few of the topics we’ll cover:

  • Patterns and practices that result in testable code
  • How to refactor common but untestable code patterns
  • Test-driven development
  • How to write unit tests with various domain-specific languages and assertion styles
  • How to test code that depends on interaction with the server
  • How to use grunt to automate testing and incorporate it into your development workflow
Google+