mardi 23 août 2016

How to run parallel tests with AVA and Mongoose

Based on the discussion for handling concurrency and atomic tests (http://ift.tt/2bAG1Vj)

I would like the best approach to test my server endpoints in parallel.

I'm using a koajs server and a mongodb database (mongoose)

I'm trying to use Mockgoose (http://ift.tt/1LLtVGR) to create a temporary in-memory mongod that will not persist the data

I wanna know if creating a separate database for each test is a good approach?

Is there any example of this?

Aucun commentaire:

Enregistrer un commentaire