mikebronner / laravel-model-caching

Eloquent model-caching made easy.
MIT License
2.24k stars 213 forks source link

Recreate baseline sqlite db once per test suite run #337

Closed dmason30 closed 4 years ago

dmason30 commented 4 years ago

So this removes the sqlite files from version and it will recreate the baseline.sqlite once on each run so the first test will always appear slower than it is because it is seeding the database.

Also because the IntegrationTestCase uses the Orchestra/TestCase and the FeatureTestCase uses the Orchestra/BrowserKit/TestCase that means that each of those recreates the baseline.sqline once for each.

I don't think the time penalty of a second per run is that bad for consistent test runs.

Its hard to explain clearly but I hope you understand.