Capybera and webrat try and fill this role in the Ruby world. They both can be used with either rspec, test::unit, cucumber or custom scripts. They both drive a variety for we runners like selenium. I know that some folks also use Watir for this purpose. Breaking out of the Ruby world for a second, Selenium w/ the selenium IDE can be great for web testing. All that assumes you really mean integration testing which in this case would mean driving the JS-based application and checking that it returns the right results. If you're looking to test the API level, you'd want to do that with any tool that can easily hit the end points and verify the JSON.
Best, Rob On Oct 4, 2012, at 10:35 AM, Chris McCann wrote: > In my day job I work on a large Java-based web app that uses a RESTful JSON > API to serve data to a JS-based front-end. Our QA folks are struggling a bit > with how best to do automated testing of the API. > > I've done some googling but come up empty-handed. Can anyone recommend a > solid integration testing framework that uses declarative (think "shoulda") > language for describing tests that we could use to exercise the API? > > Thanks, > > Chris > > -- > SD Ruby mailing list > [email protected] > http://groups.google.com/group/sdruby -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby
