Skip to Main Content

Programming Languages & Frameworks

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Mocking Oracle database in unit-tests

1034092Feb 23 2015 — edited Feb 23 2015

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?

Comments

Post Details

Added on Feb 23 2015
0 comments
2,418 views