3 ms·
Cool to see dev-ex improvements around local Postgres testing. At Graphite we use pg-mem for fast unit tests, but it's not ideal. It's extremely fast, but certa
by fosterfriends 3y ago
Cool to see dev-ex improvements around local Postgres testing. At Graphite we use pg-mem for fast unit tests, but it's not ideal. It's extremely fast, but certain advanced queries aren't supported. Curious about what others do for unit testing Postgres operations?
https://github.com/oguimbal/pg-mem https://github.com/oguimbal/pg-mem
- Nezteb 3y agoAgreed, better Postgres local testing would be amazing! I've heard about testcontainers [1] before, which can be used for Postgres. I've used it a bit, but the Elixir library for it is still under development [2] so I haven't been able to try it at work. Elixir's Ecto library is pretty good at wrapping Postgres for tests though [3]. [1] https://testcontainers.com https://testcontainers.com [2] https://elixirforum.com/t/excontainers-throwaway-containers-for-your-tests/36920 https://elixirforum.com/t/excontainers-throwaway-containers-... [3] https://hexdocs.pm/ecto/testing-with-ecto.html https://hexdocs.pm/ecto/testing-with-ecto.html