Farm Development

Unit Testing JavaScript With JsTestDriver

posted in Java, JavaScript, Testing by kumar on Monday Jun 8th, 2009 at 2:38p.m.

I've been experimenting with a new tool that was released open source recently called JsTestDriver

It's a tool that makes unit testing JavaScript simultaneously on many browsers from the command line very easy for the developer. Actually, there aren't many other tools like it that I know of. It also provides hooks for continuous integration (e.g. Xunit output) and is designed to help you run all unit tests when you click the save button in your code editor.

Here are some features it provides that I thought were nice:

Note: HTML tags will be stripped. Hit enter twice for a new paragraph.

Recent Projects

  • Fudge

    Replace real objects with fakes when testing.

  • Fixture

    Loading and referencing test data.

  • NoseJS

    Nose plugin that runs JavaScript tests for a Python project.

  • Wikir

    converts reST to various Wiki formats.