wallacemaxters / testudo
A package to generate tests for Laravel Eloquent models
0.0.3
2023-09-22 12:06 UTC
Requires
- illuminate/console: ^10.0
- illuminate/database: ^10.0
- symfony/var-exporter: ^6.3
This package is auto-updated.
Last update: 2024-12-25 15:09:33 UTC
README
The Testudo (joke with "big forehead" in portuguese) is a code generator for common TestCases in Laravel.
Install
composer require wallacemaxters/testudo
Example
php artisan testudo:make-model-test Post
This command will be generate the file tests/Unit/Models/PostTest.php
.
Features
- Generate tests for your Model relationships
- Generate tests for your Model appended attributes
- Generate test for your Model primaryKey name
- Generate test for your table name
Future
- Generate common tests for controllers, based on defined routes.