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

Testbench Dusk Laravel Package

orchestra/testbench-dusk

Helper for testing Laravel packages with Laravel Dusk. Provides a Testbench-based setup to run browser tests in a package development workflow, maintained under the Orchestra namespace with ongoing support and community contributions.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Package Development Roadmap: Enables faster iteration and validation of Laravel packages by integrating Dusk (browser testing) into the testing pipeline, reducing manual QA effort and accelerating releases.
  • Build vs. Buy: Eliminates the need to reinvent Dusk testing infrastructure for Laravel packages, allowing teams to focus on core functionality rather than testing tooling.
  • Quality Assurance: Supports a shift-left testing strategy by embedding E2E testing early in the package development lifecycle, catching UI/UX and integration issues before adoption by end users.
  • Market Differentiation: Facilitates comprehensive package documentation with live examples and test-driven validation, improving developer trust and adoption rates.
  • Maintenance Efficiency: Reduces technical debt by providing a standardized way to test package interactions with Laravel’s frontend (e.g., Blade templates, JavaScript-heavy features), critical for packages targeting modern Laravel apps.

When to Consider This Package

  • Adopt if:

    • Your team develops Laravel packages with frontend interactions (e.g., Blade components, custom admin panels, or JavaScript-dependent features).
    • You need end-to-end testing for packages but lack the time/resources to build custom Dusk integration from scratch.
    • Your package targets Laravel 10+ and requires compatibility with Dusk v8.3.5+ (or newer).
    • You prioritize test-driven development (TDD) for package validation, especially for UI-heavy or complex workflows.
    • Your stakeholders demand demonstratable stability (e.g., for SaaS tools, open-source libraries, or enterprise adoption).
  • Look elsewhere if:

    • Your package is purely backend-focused (e.g., API-only, CLI tools, or database utilities) with no frontend dependencies.
    • You’re using Laravel <10 or Dusk <8.3.5, as the package enforces strict version compatibility.
    • Your team lacks PHPUnit/Dusk experience, as this package assumes familiarity with Laravel’s testing ecosystem.
    • You need advanced Dusk features (e.g., custom browser drivers, headless testing tweaks) beyond what Testbench-Dusk provides—consider extending Dusk directly.
    • Your package is monolithic (not reusable) and doesn’t benefit from isolated testing (e.g., a full Laravel app).

How to Pitch It (Stakeholders)

For Executives/Stakeholders: "This package lets us ship Laravel packages faster and with higher quality by automating browser-level tests—critical for features like custom admin dashboards, Blade components, or JavaScript-dependent workflows. Instead of spending weeks building custom testing infrastructure, we’ll validate UI/UX and integration issues early, reducing post-release bugs and support costs. For example, if we’re building a premium package for Laravel’s admin panel, this ensures every template and interaction works flawlessly before customers adopt it. It’s a force multiplier for our dev team, turning manual QA into automated guardrails."

For Engineers: *"Testbench-Dusk bridges the gap between Laravel Testbench (unit/feature tests) and Dusk (E2E tests) for packages. It’s like having a pre-built testing skeleton for your package’s frontend interactions—no more reinventing the wheel for Dusk setup, ChromeDriver config, or test isolation. Key benefits:

  • Seamless integration with Testbench’s createApplication() for package testing.
  • Pre-configured Dusk with Laravel’s best practices (e.g., disabled search engine prompts, smooth scrolling).
  • Compatibility with modern Laravel (v10+) and Dusk (v8.3.5+), ensuring we’re not maintaining legacy tooling.
  • Future-proof: Actively maintained by Orchestra, with clear upgrade paths for Testbench/Dusk.

Use case: If your package renders a Blade component or has a custom JS workflow, this lets you test it in a real browser—just like a user would—without the overhead of setting up Dusk from scratch. Perfect for TDD or validating package demos."*

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.
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium