1st January 2011 Mufti Ali · News · Comments Off

Zombie.js: insanely fast, full-stack, headless testing

If, like me, you’re developing Web applications that have a lot of client-side JavaScript, you’ve already asked yourself “how the hell do I test this thing?”

To test client-side JavaScript — how it responds to user actions and what changes it makes — you’re going to have to run it in a browser. There are tools that let you do that, I tried a few and they were so bad I considered a career change.

It turns out, though, that you can test a lot of stuff by having a good enough approximation of a browser. You need a reliable HTML parser, a DOM implementation that can manage the document tree in memory, and a JavaScript engine to run the client-side code. A browser that doesn’t render anything: a headless browser.[1]

Incoming search terms for the article:

Visit Source

Related Posts

Paper.js - Open Source Vector Graphics Scripting Framework

Guiders.js - JavaScript Library For Guiding Users

Micro-Frameworks And Micro-Libraries of Javascript Under 5K

CamanJS - Javascript Library for Image Manipulation