One of the frustrations of unit testing JavaScript code is that it must be done so within the context of the browser.
I’m a big fan of setting up automated test environments, but the nature of JavaScript makes it a bit more difficult in contrast to server-side, compiled languages.
Zombie.js changes that, though.
Straight from the developers:
If you’re going to write an insanely fast, headless browser, how can you not call it Zombie? Zombie it is.
Zombie.js is a lightweight framework for testing client-side JavaScript code in a simulated environment. No browser required.
Awesome, huh?
The approach is solid, too. You’re not just limited to testing functions that don’t access the DOM. Zombie.js has support for walking the entire document object model.
You can check out more information, code examples, and grab a copy on the Zombie.js homepage.
Speak your mind...