3 ms·
Dockertest makes it really easy to test Go+Postgresql projects. I use it a lot. https://github.com/ory/dockertest https://github.com/ory/dockertest
by koeng 5y ago
Dockertest makes it really easy to test Go+Postgresql projects. I use it a lot.
https://github.com/ory/dockertest https://github.com/ory/dockertest
- henvic 5y agoI dislike this because you're assuming I've Docker on my system and you also have to deal with the startup time of the container. I'd rather manage the database separately, and just have it configured for my tests to use them. This is why I kind of pushed towards a solution that didn't involve Docker. Someone might think: "oh, but what [web] developer doesn't have Docker installed?" Well, I dod, but I always have problems with it, so I barely use it. I also prefer to run my database on a homelab server (https://henvic.dev/posts/homelab/ https://henvic.dev/posts/homelab/) instead of on my laptop, especially because I also need OpenSearch or Elasticsearch running, and it's better if I just offload the performance|battery hit. Funny is that when I joined the company back in February I was asked what computer I'd like to receive, and I really wanted a 13" MacBook with the new M1 processor, so I asked for it, but in the end I decided to go with Intel as I imagined using Docker would be very important. It turns out that the M1 would work just as fine for the type of work I've been doing since then, with some minor exceptions.
- gmhafiz 5y agoiirc dockertest does not need docker itself to be installed. Container start up time otoh is instant.