mardi 5 novembre 2019

An integration tests with the real database in GoLang?

In my integration test I want to check how my code works with a real database instance (Postgresql). I don't need mock it! It have to be real database connection. So the task is: init database, load test data, run the code and check the result. It would be great if I can run test in parallel. My code contains database trasactions.

How can I do it with go testing framework?

Aucun commentaire:

Enregistrer un commentaire