Thursday, April 07, 2005

javascript 单元测试框架

Javascript UnitTest Frameworks

Since I am doing some work in Mozilla with Javascript I need unittest frameworks. The problem seems to be that there are many frameworks for javascript

From xprogramming.com:

JsUnit
A unit test framework which runs from the browser (therefore ensuring correct behaviour in each browser)
JsUnit
Another JsUnit which this time emphasizes command line running and closer adherance to the original junit design
JSUnit
This appears to be unmaintained
JAVASCRIPT ASSERTION UNIT FRAMEWORK
Don't know much about this one.

I'm going to try out each of these and if I get a chance give my views. From my point of view I want command line driven tests which test libraries of functions so the second JsUnit looks close to what I need.

original link