» Next Recent Readings
See all blog posts
|Jsunit: we already use it for some of our js code.||
|crosscheck: Note: Crosscheck wasn’t tested with any code.||
|jspec (no website – just a source tree)||
|Screw.unit (docs) Note: Not tested but it is very similar to jsspec and jspec.||
- It forces you to write the unit tests in a html file instead of a .js file.
- It forces you to have a local installation of the jsunit framework in order to avoid absolute hard coded path to reference js unit files.
I tried asking about this on StackOverflow generated some interesting answers:
- Apparently MochiKit – yet another library has a framework called SimpleTest buried inside it.
- Yahoo Unit – a standalone tool from Yahoo.
Asking on the Test Driven Mailing List got another batch of answers:
- QUnit from jQuery (got several recommendations for this)
- Use GWT and do all your work in Java
In addition two people didn’t answer the question directly but instead sent my in the direction of some books:
Of the Unit Test Frameworks the real options seem to be:
- The Dojo Object Harness (DOH) unit test framework
- QUnit from jQuery
- YUI Test: see YUI Test – The New Kid on Block
I also did some digging for Mock Frameworks and have only come up with a list of tools:
- JSMock – JSMock provides expectation recording and matching, and has the ability to return, throw, and stub on object method calls
- QMock – very new
- Test Driven AJAX a presentation from Agile 2008 (long but through)