Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Test Lanes Laravel Package

mozex/laravel-test-lanes

A Laravel package for splitting your test suite into balanced lanes so PHPUnit or Pest tests can run in parallel across CI jobs, reducing total test time while keeping lane workloads predictable and easy to configure.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Evaluating parallel test execution as a lever for CI duration, developer feedback time, and cloud compute cost in Laravel applications.
  • Build-vs-buy decision for per-lane test database orchestration: this package provides Laravel-native commands and guidance instead of bespoke CI scripts.
  • Roadmap investment in test infrastructure when the suite is a delivery bottleneck; pilot lanes in CI before broad rollout.
  • Use cases include large Laravel monoliths, feature-branch CI matrices, database-backed test suites, teams adopting Pest parallel/Tia caches, and reducing flaky shared-database test runs.
  • Release 1.2.1 is a documentation and operational-safety release, not a feature or breaking-change release. It clarifies adoption requirements: cleanup must target the correct test database name, test-lanes:cleanup --connection is unsafe while tests are running, max_connections sizing must count every connection a worker opens, and lanes leave some shared state between concurrent runs, including per-checkout test-impact caches such as Pest Tia.

When to Consider This Package

  • Consider it when the Laravel test suite is slow enough that parallel CI execution has clear business value, and tests use real databases where per-lane database isolation matters.
  • Good fit when the team already uses Laravel Artisan commands, can standardize test database naming in CI, and wants a focused package rather than custom parallel-test database scripts.
  • Consider it when multiple workers and database connections are involved and the team can right-size max_connections; 1.2.1 explicitly calls out that sizing must account for every connection a worker opens.
  • Look elsewhere if tests use SQLite in-memory, the suite is already fast, or existing CI infrastructure already handles database isolation cleanly.
  • Add guardrails if the team plans to use test-lanes:cleanup --connection; 1.2.1 warns it should only run while no tests are running.
  • Treat shared per-checkout caches, such as Pest Tia, as an explicit design consideration. The package does not remove all cross-run shared state, so teams must isolate or accept those caches.
  • This is not a replacement for test-suite architecture. It is an accelerator for database-backed parallel testing in Laravel.

How to Pitch It (Stakeholders)

  • Executives: A narrow Laravel tool that can shorten CI feedback loops and reduce compute spend by running tests in parallel with isolated test databases. Release 1.2.1 is documentation and safety guidance, so there is no migration risk, but it surfaces operational safeguards that should be part of rollout.
  • Engineering: Use DB_DATABASE=app_testing php artisan test-lanes:cleanup so cleanup targets the intended database. Do not run test-lanes:cleanup --connection while tests are active. Size max_connections for every connection a worker opens, not just a couple. Account for shared per-checkout caches like Pest Tia across concurrent runs.
  • Product management: Treat this as a build-vs-buy accelerator for test infrastructure, not a customer-facing feature. Pilot with measurable outcomes: CI wall time, flake rate, database connection saturation, and cleanup incidents. Gate broad rollout on CI runbook updates from 1.2.1 and clear ownership of test database naming and cleanup procedures.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib