I came across an issue when running unit tests in Laravel where my unit tests where altering my local SQLite database. I discovered the issue was due to the sharing of .env
files. It turns out the solution is as simple as adding a single environment variable to your phpunit.xml
file.
Tag: Testing
Using a Separate SQLite Database with Laravel Dusk
Laravel Dusk was released with Laravel 5.4 and gave developers an incredibly easy API to create and run automated browser tests. However, I came across an issue while running browser tests with SQLite.
Continue reading “Using a Separate SQLite Database with Laravel Dusk”