A multi-tenant Laravel app using stancl/tenancy had painfully slow tests: 1-3 seconds per test, 5 minutes for a full suite, and 30 minutes on GitHub Actions. The fix was wrapping each test in database transactions across both the central and tenant databases, rolling back after each test instead of recreating and migrating the
Sort: