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