Unit Testing JavaScript (Mocks ??)

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Unit Testing JavaScript (Mocks ??)

Post by Chris Corbyn »

I'm looking for a Unit Testing framework for JavaScript. I've played around with JSUnit (the one at jsunit.net... there are others by the same name) which is pretty nice with a nice little test suite but does anybody know one that supports Mock Objects for testing things like AJAX?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Sorry this seems to have been a waste of a thread :( I found this: http://jsmock.sourceforge.net/

It can just be used inside the JSUnit testing framework.
Post Reply