JavaZone 2009 - Test Driven Development in JavaScript
We create maintainable, flexible and solid Java code with the use of techniques such as Test Driven Development and Continuous Integration. When it comes to client side Web development with JavaScript, the story is quite different.
JavaScript has for a long time been perceived as a toy programming language for making flashy buttons and simple form validation. But now as the client side grows larger and more complex, we should take the lessons learned from TDD in Java and apply them to our JavaScript development.
There are many myths surrounding TDD and JavaScript, and we will in this session bust some of these:
- There are no proper frameworks for test driven JavaScript development.
- There is no IDE support.
- It isn't possible to integrate it with my build or CI system.
Our hands-on demonstration will show you a JavaScript application capable of controlling TANDBERG video systems and provide you with all the necessary pieces to do true Test Driven Development in JavaScript yourself. This includes:
- Our minimal test framework for JavaScript testing
- Running tests from Eclipse with the push of a button
- Using mocks and stubs to test code in isolation
- Testing of JavaScript integrated with your build and continuous integration systems
Ragnvald Barth
Ragnvald Barth is a highly experienced Java and .Net developer. He has been working for TANDBERG the past 3 years on a wide array of projects.
Stig Murberg
Stig Murberg has been working at TANDBERG for the last 4 years. He works as a team lead and software developer, and his main focus and interests are in the area of Web development.
