Mockjax

The Mockjax plugin is a development and testing tool for intercepting and simulating ajax requests made via jQuery.ajax without impacting production code.

Dual licensed under the MIT or GPL.

Download

Get to know Mockjax

Mockjax on Github

Overview

Most backend developers are familiar with the concepts of mocking objects or stubbing in methods for unit testing. For those not familiar with mocking, it's the simulation of an interface or API for testing or integration development purposes. Mocking with front-end development though is still quite new.

Much of the development that appendTo does focuses on front-end development tied to RESTFUL web services. As such we're able to spec out the service contract and data format at the beginning of a project and develop the front-end interface against mock data while the back end team builds the production services.

Jonathan Sharp developed this plugin for appendTo in March of 2010 and our team has been using it in all of our projects since. appendTo is committed to sharing our tools and best practices with the community through open source so it's with much excitement that we're releasing this code.

Articles & Tutorials About Mockjax