Weave Code
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

Fastest Laravel Package

liuggio/fastest

Run tests in parallel with a simple CLI wrapper. Fastest executes any command (PHPUnit, Behat, etc.) across available CPU cores, randomizes test order, supports piping test lists or phpunit.xml, adds verbosity flags, and helps functional tests use one DB per process.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Accelerated CI/CD Feedback Loops: Reduces test suite execution time by ~75% (e.g., 30m → 7m) for functional tests, directly addressing bottlenecks in developer workflows and CI pipelines. Justifies investment in parallelization infrastructure.
  • Build vs. Buy: Buy—avoids reinventing parallel test execution. The package’s focus on functional tests (with DB isolation, Behat support, and coverage merging) makes it a specialized, low-maintenance alternative to generic tools like paratest or parallel.
  • Roadmap Priorities:
    • Feature Flag for Parallel Tests: Integrate fastest as a configurable option in test runners (e.g., --parallel flag in custom scripts).
    • Multi-Cloud CI Optimization: Partner with AWS/GCP to benchmark fastest against native parallel runners (e.g., GitHub Actions’ matrix or parallel jobs).
    • Database Isolation for Microservices: Expand use cases to contract testing between services (e.g., parallel API-to-API tests with isolated DBs per service).
  • Use Cases:
    • Functional/Integration Tests: Critical for projects with stateful tests (e.g., e-commerce flows, auth systems) where DB isolation prevents flakiness.
    • Behat/Gherkin Tests: Enables parallel scenario execution, reducing feedback time for BDD workflows.
    • Legacy Codebases: Targets monolithic apps with slow test suites (e.g., Symfony/Laravel apps with 1000+ tests).
    • Local Development: Improves DX by letting devs run tests in parallel locally (e.g., fastest + phpunit in VS Code tasks).

When to Consider This Package

  • Adopt When:

    • Your test suite runs >10 minutes locally or in CI, and >50% of tests are functional/integration tests.
    • You use PHPUnit/Behat and need DB isolation per parallel process (avoids race conditions).
    • Your team prioritizes developer velocity over marginal CI cost savings (e.g., AWS Lambda parallelization).
    • You’re not using native parallel runners (e.g., GitHub Actions’ matrix, CircleCI’s parallelism), or they’re too complex for your needs.
    • Your tests randomize execution (default in fastest), reducing flakiness from order dependency.
  • Look Elsewhere If:

    • Tests are unit-only (no need for parallelization; fastest adds overhead).
    • You need cross-language support (e.g., Python/JS tests; fastest is PHP-only).
    • Your CI already has optimized parallel runners (e.g., Docker Compose arrays, Kubernetes job parallelism).
    • Tests rely on shared state (e.g., global caches, in-memory queues) that can’t be isolated.
    • You’re using SQLite in-memory DBs (requires manual __DBNAME__ setup; not plug-and-play).
    • Your team lacks PHP expertise to debug environment variable issues (e.g., variables-order in php.ini).

How to Pitch It (Stakeholders)

For Executives (Business Impact)

*"Fastest cuts our functional test suite from 30 minutes to 7 minutes—a 4x speedup—without adding engineering overhead. This directly reduces:

  • Developer frustration (faster feedback loops).
  • CI costs (fewer minutes billed on AWS/GCP).
  • Release cycle time (unblocked merges).

It’s a drop-in solution for PHP projects using PHPUnit/Behat, with zero maintenance (MIT-licensed, actively updated). For a team running 100+ tests daily, this saves ~20 hours/month—equivalent to half a FTE. We’re proposing a POC in Q2 to validate ROI in our CI pipeline."*

For Engineering (Technical Fit)

*"Fastest is a lightweight, PHP-native parallel test executor that:

  • Isolates databases per process (critical for functional tests with side effects).
  • Supports Behat, PHPUnit, and custom commands (no vendor lock-in).
  • Merges coverage reports (no manual post-processing).
  • Works locally and in CI (no cloud-specific dependencies).

Why not alternatives?

  • paratest: Fails on complex projects; no DB isolation.
  • Native CI parallelism: Overkill for PHP; adds orchestration complexity.

Implementation:

  1. Add liuggio/fastest to composer.json (dev dependency).
  2. Replace phpunit with fastest "vendor/bin/phpunit {}" in CI scripts.
  3. Configure DB adapters (Doctrine/SQLite) for isolation. Risk: Minimal—package is battle-tested (used by 484+ repos)."*
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.
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle
dmstr/api-platform-utils-bundle
dmstr/api-configuration-bundle
chrisdev/ux-components
baks-dev/finances
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle