Forum Stats

  • 3,872,910 Users
  • 2,266,489 Discussions


Mocking Oracle database in unit-tests

1034092 Member Posts: 17
edited Feb 23, 2015 4:36AM in Node.js

In need to write unit tests that uses old node-oracle library and I am looking for options to run tests w/o real database.

  1. Is there in-memory fake database implementations (such as mockcouch for CouchDB or TingoDB for MongoDB)?
  2. Is there real world success stories to use Sinon.Js to mock database?
  3. Should I now rewrite modules to use with current supported library to make this 2 options available or better/simpler implemented?
  4. Should I not write unit-tests now and wait until options 1) and 2) available are?