Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



Agreed, 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

[2] https://elixirforum.com/t/excontainers-throwaway-containers-...

[3] https://hexdocs.pm/ecto/testing-with-ecto.html




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: