Livewire Dusk Testbench

screenshot of Livewire Dusk Testbench

For testing your package's Livewire components with Laravel Dusk

Overview

Livewire Dusk Testbench is an invaluable tool for developers working with Laravel and Livewire, designed to streamline the testing process of Livewire components. Developed by Caleb Porzio and packaged by Josh Hanley, this convenience wrapper enhances the existing Orchestral Testbench Dusk framework, making it more accessible and efficient for those looking to implement rigorous testing into their Livewire applications. By simplifying the setup process and providing clear guidelines, this tool allows developers to focus more on coding and less on configuration.

With Livewire Dusk Testbench, testing becomes a more intuitive experience. Whether you’re upgrading from a previous version or starting fresh, the straightforward installation and usage process are tailored to ensure that Livewire components can be tested easily and effectively.

Features

  • Easy Installation: Quick setup through Composer, allowing developers to get started with just a simple terminal command.
  • Seamless Upgrade Path: Transitioning from an earlier version is smooth with clarity on deprecated methods and properties, ensuring a hassle-free update.
  • Simplified Testing Structure: The new test structure eliminates the need for cumbersome method calls, making the process more straightforward with Livewire::visit(MyComponent::class).
  • Custom Layout Support: Ability to create custom app layouts for testing, allowing for flexibility with additional packages like AlpineJS.
  • Clear Configuration Options: Offers a variety of configuration options to tailor the testing environment according to specific project needs.
  • Enhanced Macros: Comes Pre-loaded with Dusk macros, enhancing functionality and productivity during testing.
  • Documentation Guidance: Provides comprehensive documentation to help users navigate through configuration and testing easily, ensuring no step is left to chance.