dssg / triage

General Purpose Risk Modeling and Prediction Toolkit for Policy and Social Good Problems
Other
185 stars 60 forks source link

Look into reusing Postgres database to speed up test suite #824

Open thcrock opened 3 years ago

thcrock commented 3 years ago

For ease, Triage configures the testing module ( https://github.com/tk0miya/testing.postgresql ) using the easy method of re-instantiating the database each time. It advertises a way to cache it, potentially speeding up our builds by a lot. However, when I intially introduced the library, I tried that option and couldn't get it to work. I gave up on it pretty quickly, because our test suite was small then. Now, it takes 50 minutes to run and it's probably worth seeing if we can get that to work and see what the test speedup would be.