Postgres Integration tests in Golang?! ~ Integration Testing in Go

preview_player
Показать описание
In this video, I review a nice way of testing your repositories in Golang using in-memory Postgres implementation. I also show an example of how you can write tests for your repositories in a way which enables you to reuse the same tests - without writing new test cases for a new implementation. I.e the same set of tests can be used by different implementations.

Integration tests for your SQL queries enable you to ensure your raw SQL strings are valid and add an extra layer of robustness to your Go services so that you can ensure SQL is passing and repos are working as expected.

Рекомендации по теме
Комментарии
Автор


Also a quick note, massive thanks to all the new subscribers! I'm closing on 2000 subscribers which I never expected when I created this channel ~ so a big thanks.

samvcodes
Автор

Hey, there's a typo in the link to your Github. Missing `h` in github

ekrresa
welcome to shbcf.ru