vendredi 20 janvier 2017

How to prepare test data in MongoDB prior to testing?

I am writing a single-page application that uses MongoDB for the database. Other technoligies employed are React, Redux and it will be tested using Mocha. I would assume that best practise would be to generate a 'test' database prior to the tests running, 1) to test that API calls are creating the right data, 2) to utilize the created data in subsequent tests.

Are there any testing tools, relevant to the application architecture, that would aid in generating this database?

Aucun commentaire:

Enregistrer un commentaire