News for hackers. Stuff that matters.
Re:Three ways to improve your parallelized tests by bionhoward on Thursday March 21, 2024 @02:23PM (#39782430)
One thing I did that helped a ton was make a “flush” Postgres db branch (same db name just appending _flush to the name) and use that for tests on the code to reset the database state. Otherwise you have to mess around trying to make sure the tests of db resetting happen after all the other tests, and that can be flaky and wind up using hard coded delays or ordering tests, slows things way down.
Re:Three ways to improve your parallelized tests by tmd83 on Friday March 22, 2024 @01:02PM (#39792666)
What does it mean to make a "flush Postgres db branch".
Re:Three ways to improve your parallelized tests by pavel_lishin on Friday March 22, 2024 @02:25PM (#39793328)
None of this is wrong, but this is mostly an advertisement for QA Wolf.