My favorites | Sign in
Project Logo
                

qMock is a standalone, lightweight mocking framework that facilitates integration testing for JavaScript programs.

var ninja = new Mock();

Please note it is useful, but not essential, to have some experience of testing code in a TDD manner to use qMock

qMock is a 'expect-run-verify' JavaScript mocking library in the style of jMock, or EasyMock, which can be used in isolation, or more usefully in conjunction with a test-harness such as QUnit, or YUI Test as part of the TDD cycle. It facilitates behaviour-based, or 'glass-box' testing of JavaScript programs, by allowing developers to mock collaborator objects, and verify their behaviour. It was written by Mark Meyer and Andy Beeching, a couple of JS hackers in London, and we thought we'd share the results with the community.


You may want to:










Hosted by Google Code