Early in my Laravel days, I would bump into way more flaky tests than I do now. One big reason for the improvement was moving to a separate testing database.
In the latest episode of the No Compromises podcast, we discuss the benefits of having distinct databases for testing and local development. We explain how this approach ensures a reliable test suite and avoids conflicts with day-to-day dev work. In the process, we reveal a simpler workflow for setting up new environments and keeping projects stable.
- (00:00) - Why separate dev and test databases
- (02:15) - Automating database setup with seeders
- (05:00) - Avoiding flaky tests and migration pitfalls
- (09:00) - Reimagining old habits with new practices
- (12:00) - Silly bit
And after listening, don't forget to subscribe to the podcast, so you don't miss future episodes.
Here to help,
Joel
P.S. Simple changes like this can have a big impact. Imagine how many tiny, but impactful, insights you could pick up from the Mastering Laravel community!