Jasmine for ReST API testing?

From: John
Sent on: Tuesday, March 20, 2012 4:19 PM
Our ReST server is getting to be fairly sophisticated and we're looking to improve our tests that run directly against the ReST interfaces. We use WebDriver to do end-to-end testing, verifying the UI as well as the server, but that's a bit slow and cumbersome, and it doesn't help to assure that new ReST APIs behave as expected before the UI tries to use them.

We're most familiar with WebDriver and Geb as tools for driving high-level tests, but since these new tests are at the level of AJAX calls, it seems we should consider building tests using Javascript. The Jasmine framework seems that it work for our needs. It seems any Javascript framework will require some work on tooling to run in a headless environment (as we don't currently use Node.JS), but I wonder if anyone has used the Rhino engine with HTMLUnit to execute headless testing with Javascript.

More broadly, the question is: what would you recommend for testing ReST interfaces?
 

Our Sponsors

  • Twilio

    Easily integrate text messaging, phone calls and VOIP into your app!

  • Formidable Labs

    Enterprise grade node, web and mobile app development.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy