RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

In-memory CouchDB implementation for speeding up your tests

We are using CouchDB as our main datastore and with our growing test suite, I was looking for a way to speed it up. I wanted to make the tests faster without introducing mocks everywhere or having to change the already written tests. What I ended up doing is writing an in-memory CouchDB implementation in Ruby: RockingChair. It is basically just a big hash with a CouchRest HTTPAdapter. Apart from the simple document API (store, retrieve, and delete object) it also supports CouchPotato and SimplyStored views. Checkout RockingChair on github.

Comments

Post a Comment

Comment abilities for non registered users are currently deactivated, pending time to add a proper CAPTCHA to solve the escalating spam problem. Sorry!