Read more ...
I wanted to better understand what is happening when I run Laravel tests that hit the database.
TLDR: Database migrations are run on every test run, optionally with seed data.
Each test case runs in a transaction.
(This is written based on Laravel 9)
How to get code coverage reports from PHPUnit to Sonarqube
I started already having an environment using docker-compose but without xdebug the unit tests
couldn’t generate coverage reports.Read more ...
A common problem with Laravel seems to be getting 419 errors.
If you have fixed these except for during testing : disable caching.Read more ...