News for hackers. Stuff that matters.
Re:Database mocks are just not worth it by cryptonector on Monday December 30, 2024 @10:20PM (#42556107)
It's trivial to spin up a PG instance on an AF_LOCAL (Unix domain) socket, create the DB, populate it with schema and test data, then run your app's tests. If all the tests have different non-overlapping data then you can even share the one instance for all the tests.

There are no comments on this comment yet.