Black Friday: the Laravel testing course is $149 instead of $249, through Dec 7. See the course →
logo

Why we don't use SQLite for tests

Faster isn't always better

Joel Clermont
Joel Clermont
2025-12-05

From our daily Laravel tips email. Get the next one in your inbox.

If you write tests for your Laravel app (and I hope you do!), you will eventually think about how to make the test suite faster.

One common approach is to use an in-memory SQLite database for tests, swapping it in place of your usual MySQL or Postgres database.

In today's video, I explain why I personally don't use this approach.

Watch Now (3 min)

And after watching, don't forget to subscribe to our YouTube channel, so you don't miss future videos.

Here to help,

Joel

P.S. There are better ways to make test suites faster than switching to an in-memory database. Let us know if you'd like help speeding your test suite up.

Want a tip like this in your inbox every weekday?

Each one takes less than 2 minutes to read. Join 4,000+ Laravel developers who already get them.

email
No spam. Only real-world advice.
Toss a coin in the jar if you found this helpful.