Enter the Dragon: Testing with Javascript

heypaxton

Writing javascript can be like playing peekaboo. You might not know what you have until you log something to the console or look at your browser.  You might even go old school and use an the alert function. This is okay, but is there a better way? Of course! Let’s talk about test/behavior driven JS development. 

Bruce lee said to “notice that the stiffest tree is most easily cracked, while the bamboo or willow survives by bending with the wind.” Writing tests helps create less fragile code. You can eliminate edge cases that break your code. Turn your code into bamboo by writing tests.

In this talk you learn three swift jabs:

  • Philosophy behind test/behavior driven development
  • Tools available for front end testing
  • How to set up and run of a test suite

The kung fu in this talk will not be too advanced. However, it is recommended that you have some experience with javascript. 

About Eric Paxton:
Eric has been doing web development since 2007. He has worked on mobile and web applications in a variety of industries, including government and nonprofit. He is currently a front end engineer at ThinkShout in Portland, OR. He is passionate about music and has a bit of a record collection.

Session Track

Front End

Experience Level

Intermediate

Drupal Version