mgivney / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Support for mocking AJAX/JQuery calls #55

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was wondering whether JsTestDriver supports mocking AJAX/jQuery calls?

I'm currently testing against an environment which I cannot get access to, 
so the only way to do so is to mock up the AJAX/jQuery calls.  Currently 
on the market there are a few Javascript/AJAX mocking frameworks/tools: 
Jack (supports QUnit), JSMock, and the likes.  I had a quick look at them, 
but since I'm not from a Javascript/AJAX/or even jQuery background, it is 
hard for me to see whether JsTestDriver currently supports those 
frameworks.

Any chance that it will support them in the near future?  Or are those 
frameworks supported already?

Thanks.

Original issue reported on code.google.com by lighteni...@gmail.com on 22 Oct 2009 at 1:19

GoogleCodeExporter commented 9 years ago
Just try to add them to your configuration file so they are loaded in your 
browser.
It might just work, let me know if it doesn't.

Original comment by toc...@gmail.com on 2 Nov 2009 at 7:46

GoogleCodeExporter commented 9 years ago
Sinon JS works extremely well for this.

Original comment by t...@picklive.com on 22 Nov 2011 at 4:44