As a follow up to my recent escapades test driving javascript, and motivated in part by a comment on one of my posts, I’m putting together some comparisons between the many different testing frameworks out there for javascript. I plan on dividing it into two separate tables, comparing BDD based frameworks and unit testing based frameworks. It makes sense to separate the two to compare them on equal terms, such as whether or not a BDD framework supports nested describes or “behaves like a” functionality.
So far, these are the frameworks I plan to include in the comparison charts:
BDD Frameworks
- jsspec
- jspec
- inspec
- Screw.Unit
- SugarTest
- jShoulda
Unit Testing Frameworks
- jsUnit (berlios.de)
- jsUnit (jsUnit.net)
- QUnit
- YUITest
- JsUnitTest (http://github.com/drnic/jsunittest/tree/master)
- DOH Unit Testing
- Crosscheck
- jsUnity
- FireUnit
- JsTestDriver (The bundled unit testing framework, not the runner)
Please let me know if any of you out there know of a framework I should add. I’ll be posting a rough draft later this week.


Can’t wait to read your comparison! Your earlier posts were an invaluable source of information in this area.
Wahoo! looking forward to it. Will be interesting to get some more ideas of where to take JSpec next. (even though I have a huge list already
)
There’s an implementation of TAP, the Test Anything Protocol (http://testanything.org, http://en.wikipedia.org/wiki/Test_Anything_Protocol) over at http://openjsan.org/doc/t/th/theory/Test/Simple/
TAP is the foundation of all unittests in Perl, but is also used by the MySQL project.
There’s also the JSAN Test.Simple/Test.More/Test.Harness suite.
Please add a WordPress plugin to add previews to the comments. Submitting comments without seeing how they are going to be rendered is annoying.
I was thinking of support TAB, but then released it really misewell just be JSON
I’m continuing to look forward to your results.
Hey James
Great work!
I just read this post, and it sounds exactly like something that I have been looking for over the past couple of weeeks!
I was reading through the next posts though, but couldn’t find this comparison (in either July or August posts), can you tell if you have written a comparison yet?..and if you have then where can I find it!
Thanks