Quantcast
Viewing latest article 3
Browse Latest Browse All 10

Javascript Unit-testing? [closed]

What’s the best way to go about running unit tests for Javascript? I’ve been playing around with Selenium IDE, but it’s Firefox-specific. Selenium RC looks… difficult – but is it the best way to run tests in, say, IE6?

Also, is it worth doing? I haven’t seen much about automated tests for Javascript applications, but it seems to me that as the language running most of the user experience it should be tested. Do you test your Javascript, just back end code, or neither?


Solution:

In the last couple of days I’ve also been looking for javascript unit-testing frameworks, but I still haven’t decided on one.

  • This one, QUnit, looks interesting. QUnit is the unit testrunner for the jQuery project

  • Also, FireUnit, a FireBug extension, was recently launched. FireUnit provides a simple JavaScript API for doing simple test logging and viewing within a new tab of Firebug.


Viewing latest article 3
Browse Latest Browse All 10

Trending Articles