This PR makes test execution faster by creating the sqlite file only once and then just creating a copy of it for every test. My local timing shows 0.3 seconds speedup for every test case that uses DB (which seems to be almost all test cases), so a speedup for the whole test suite could be around 5 minutes, even though I didn't measure that.
(Just as a side note, I have SSD disk. For normal HDDs the speedup would likely be even more significant.)
This PR makes test execution faster by creating the sqlite file only once and then just creating a copy of it for every test. My local timing shows 0.3 seconds speedup for every test case that uses DB (which seems to be almost all test cases), so a speedup for the whole test suite could be around 5 minutes, even though I didn't measure that.
(Just as a side note, I have SSD disk. For normal HDDs the speedup would likely be even more significant.)