jeudi 9 avril 2015

Integration testing with Sequelize

I've got a Express web api using sequelize that i want to do end to end testing with. I want to be able to do end to end testing with an in memory database so i can run it on whatever machine pleases me.


I use mysql database for development and production, however i was thinking about using an in-memory sqlite database for testing but i'm not sure what the best way is to get test data into it.


There are several modules around like squelize-fixtures but none of them seem to be able to just fill the database with data without the need to write code around it to manipulate and insert it.


Anyone here doing integration tests with sequelize and sqlite that has figured out a good way of doing it without all the boilerplate code?


Aucun commentaire:

Enregistrer un commentaire