mardi 1 janvier 2019

Functional tests - Best pratice with micro-service architecture

I got a little problem to realize functional tests with micro-service architecture.

I got a big micro-services architecture will a lot of APIs and DB. I have a Symfony application that uses a lot of this APIs to display/compute information.

I want to realize some functional tests but how can I init all my database with tests values before launch tests.

Should I call all APIs to insert data before tests then remove them after tests? (this could be hard and long if I have a lot of APIs to configure

Should I launch a script that does the dump of the existent database, then inject test database dump, and rollback database after my tests?

Aucun commentaire:

Enregistrer un commentaire