Writing tests to validate behaviour in a multi-tenancy, multi-database app can be challenging. “Lock wait timeout” errors, or transactions cleaned up in one db and not another – it can be very frustrating! Fortunately, Laravel has a way to support db transactions across multiple databases.
PHP
★ Running PHP tests in parallel on GitHub actions
A couple of years ago, Laravel introduced a great feature which allows to run PHPUnit / Pest tests in parallel. This results in a big boost in performance. By default, it determines the concurrency level Read more…