https://github.com/little-green-man/livewire-tests-generator
Scaffold tests for your Livewire components
https://github.com/little-green-man/livewire-tests-generator
Last synced: about 2 months ago
JSON representation
Scaffold tests for your Livewire components
- Host: GitHub
- URL: https://github.com/little-green-man/livewire-tests-generator
- Owner: little-green-man
- License: mit
- Created: 2023-05-12T05:46:12.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-09T11:03:38.000Z (over 1 year ago)
- Last Synced: 2025-02-15T18:52:01.264Z (4 months ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Scaffold tests for your Livewire components
[](https://packagist.org/packages/little-green-man/livewire-tests-generator)
[](https://github.com/little-green-man/livewire-tests-generator/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/little-green-man/livewire-tests-generator/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://packagist.org/packages/little-green-man/livewire-tests-generator)
[](https://treeware.earth)Include this package to scaffold pest tests for your Livewire components. That's it! A literal one-trick pony.
## Licence
This package is [Treeware](https://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/little-green-man/livewire-tests-generator) 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:
```bash
composer require little-green-man/livewire-tests-generator --dev
```You can publish the config file with:
```bash
php artisan vendor:publish --tag="livewire-tests-generator-config"
```This is the contents of the published config file:
```php
return [
'output-directory' => base_path('tests/Unit/Http/Livewire/'),
];
```## Usage
```bash
php artisan generate-livewire-tests
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Elliot Ali](https://github.com/kurucu)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.