Re:How “It works in my machine” turns to “It works in my con...
by JackFr on Wednesday July 26, 2023 @08:59PM
(#36887440)
All my automated integration tests use a real Postgres database in a known state. I don’t mock or stub or use an in-memory database pretending to be Postgres. It’s nice.
[ Parent
| on HN ]
Re:How “It works in my machine” turns to “It works in my con...
by greiskul on Thursday July 27, 2023 @02:54AM
(#36889913)
Yup. And you can make sure to run your tests in the exact same Postgres version you are running in production. No need to go help your teammate whose machine is for some reason behaving different, due to some weird configuration file somewhere that they forgot they changed it 6 months ago.