2 ms·
True but then my tests take longer to run. I really like having very fast tests. And then my tests have to make local network calls to a postgres server. I like
by sneilan1 1y ago
True but then my tests take longer to run. I really like having very fast tests. And then my tests have to make local network calls to a postgres server. I like my tests isolated.
- pphysch 1y agoThey are isolated, your devcontainer config can live in your source repo. And you're not gonna see significant latency from your loopback interface... If your test suite includes billions of queries you may want to reassess.
- sneilan1 1y agoYou know what, you have a very good point. I'll give this another shot. Maybe it can be fast enough and I can just isolate the orm queries to some kind of repository pattern so I'm not testing sql queries over and over.