little-green-man/livewire-tests-generator

Scaffold tests for your Livewire components


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads Treeware

Include this package to scaffold pest tests for your Livewire components. That's it! A literal one-trick pony.

Licence

This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.

Installation

You can install the package via composer:

composer require little-green-man/livewire-tests-generator --dev

You can publish the config file with:

php artisan vendor:publish --tag="livewire-tests-generator-config"

This is the contents of the published config file:

return [
    'output-directory' => base_path('tests/Unit/Http/Livewire/'),
];

Usage

php artisan generate-livewire-tests

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.