hidayetov/auto-testify
Laravel package that generates CRUD and uniqueness tests for Eloquent models via an Artisan command. Detects unique fields from the DB schema with doctrine/dbal or from a $unique model property, and skips DB-dependent checks when no connection is available.
doctrine/dbal dependency for schema detection ensures flexibility—critical for projects with complex migrations or no database in dev environments.doctrine/dbal adds ~5MB to vendor size and introduces a new dependency. May conflict with existing DBAL usage (e.g., Doctrine ORM).laravel-shift/blueprint or spatie/laravel-model-stubs.Test Strategy Alignment:
laravel-shift/blueprint) or fill a gap for model-specific tests?Customization Needs:
Performance Impact:
Maintenance Overhead:
createTestModel()) reduces friction.expect() syntax).doctrine/dbal is a soft dependency—only needed for schema detection. Projects without DBAL can rely on manual $unique definitions.doctrine/dbal only if schema detection is required; otherwise, configure models with explicit $unique properties.auto-testify:generate Artisan command).SoftDeletes) and timestamps (HasFactory) are supported out-of-the-box..env).laravel-shift/blueprint) to avoid duplication.php artisan vendor:publish --provider="HidayetHidayetov\AutoTestify\AutoTestifyServiceProvider").php artisan auto-testify:generate for all models or target specific ones..gitignore for temporary files.php artisan migrate).TestModelTest.auto.php) to flag auto-generated sections.hidayetov/auto-testify for updates, especially if Laravel 12+ introduces breaking changes.pest-factories).laravel-shift/blueprint).auto-testify’s --no-db flag for unit tests.How can I help you explore Laravel packages today?