Re:Mock your HTTP responses to test your REST API
by yotsumi on Friday May 03, 2013 @12:43PM
(#5651022)
It's an open source project, created 2 days ago. All is possible, this website is just a proof of concept.
And you can fork the project to run it locally.
Re:Mock your HTTP responses to test your REST API
by city41 on Friday May 03, 2013 @12:48PM
(#5651056)
Yeah I realize that. I hope I didn't come across too harsh. It is a good idea, and I'd like to see it grow some more.
Re:Mock your HTTP responses to test your REST API
by johns on Friday May 03, 2013 @12:44PM
(#5651032)
What do you use for your existing tests? VCR?
Re:Mock your HTTP responses to test your REST API
by city41 on Friday May 03, 2013 @12:51PM
(#5651077)
We've rolled our own system inside Jasmine that mocks out XHR. It's generally in the form of:
@ajax.whenQuerying('someendpoint').respondWith(someData)
And internal to that system we have some components that understand the overall shape of our data model so someData can be a very small, simple object with just the data the test cares about and the internals flesh out the rest.
If Mocky could be ran onsite and had a nice API for easily generating mock responses, then I think it would be more useful.