What problem does it solve?
This Skill ensures comprehensive test coverage for Laravel and Livewire applications, preventing production bugs and providing a robust safety net for future changes. It transforms testing from a chore into a reliable safety net, letting you deploy with confidence.
Core Features & Use Cases
- Unit, Feature, & Livewire Tests: Generates high-quality tests for individual components, HTTP endpoints, and UI interactions using Pest.
- Edge Case & Time-Dependent Testing: Explicitly covers complex scenarios, including data providers and time manipulation.
- Database & Mocking Assertions: Utilizes powerful database assertions and test doubles (mocks/fakes) for isolated and reliable tests.
- Use Case: After implementing a new API endpoint, use this Skill to automatically generate feature tests that cover happy paths, validation errors, and authorization checks, ensuring the endpoint behaves as expected.
Quick Start
Write comprehensive tests for the OrderService class, covering its calculateTotal method and any associated exceptions.