10 JavaScript Testing Tools

Sam Deering
Sam Deering

Testing a JavaScript library like jQuery can sometimes be pretty difficult compared to other languages like C# which you can utilise the power of Visual Studio debugging. Of course you don’t necessarily need to develop your own test suite because there are already quite a few around. The following are a few JavaScript Testing Tools that we’ve found that we think might be useful for testing your scripts. Have fun!

1. Blue Ridge – JavaScript Testing Framework

The Plugin adds support for command-line and in-browser JS unit tests to your Rails app. It bundles several great tools together in a convention-over-configuration, Rails-like way.

Blue Ridge

Source + Demo

2. SugarTest – JavaScript Testing

Makes it easy to write elegant and understandable JavaScript tests. Its API is inspired by both RSpec, Shoulda and jQuery. It works as a DSL running on top of JsUnitTest.


Source + Demo

3. FireUnit – JavaScript Unit Testing Extension

FireUnit provides a simple JavaScript API for doing simple test logging and viewing within a new tab of Firebug. FireUnit is a Firefox/Firebug extension.


Source + Demo

4. JSLint – The JavaScript Code Quality Tool

An online JavaScript program that looks for problems in JavaScript programs. JSLint takes a JavaScript source and scans it – if it finds a problem, it returns a message describing the problem and an approximate location within the source.


Source + Demo

5. QUnit – JavaScript Test Suite

QUnit is an easy-to-use JavaScript test suite. It’s used by the jQuery project to test its code and plugins but is capable of testing any generic JavaScript code.


Source + Demo

6. JSpec

Is an extremely small, yet very powerful testing framework. Utilizing its own custom grammar and pre-processor, JSpec can operate in ways that no other JavaScript testing framework can.


Source + Demo

7. JSLitmus

Is a lightweight tool for creating ad-hoc JavaScript benchmark tests.


Source + Demo

8. Selenium – JavaScript Web Application Security Testing Tool

Is a test tool for web applications that tests run directly in a browser just as real users do. Supports Internet Explorer, Mozilla and Firefox on Windows, Linux, and Macintosh. No other test tool covers such a wide array of platforms.


Source + Demo

9. Watir (pronounced water)

Is an open-source (BSD) family of Ruby libraries for automating web browsers. It allows you to write tests that are easy to read and maintain. It is simple and flexible.



10. Sahi

Is a mature, business-ready tool for automation of web application testing. Sahi runs on any modern browser which supports JavaScript.


Source + Demo