dimanche 1 mars 2015

Populate TingoDB with data for acceptance test

I have NodeJS app that uses MongoDB as database. I'm using native mongo driver (not mongoess).


The application allow users to work on projects and share them and the logic that decide which projects a user is allowed to see is built as mongo criteria selector.


In order to test that I've found TingoDB which looks like a great candidate for mocking the MongoDB to be able to run the real model code and check that it is working.


My question is what is the best way to load the initial data? keep it in separate file? Keep it as another model?


Thank you, Ido.


Aucun commentaire:

Enregistrer un commentaire