Test-First JavaScript
December 28, 2004
If you're thinking of writing some JavaScript, think again. OK, if you must write JavaScript, then it should at least be fun! And what could be more fun than writing JavaScript driven by tests? Wait! Don't answer that. It's all relative, of course, but JsUnit turns that lemon into lemonade, as they say. It's JUnit, only the tests are written in JavaScript and they run in the browser. The test runner even sports a red/green bar that inches forward with each test. Whee! I'll admit, we had some good fun with it at a client site today.