PHPackages                             thomyl/laravel-auto-test-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. thomyl/laravel-auto-test-generator

ActiveLibrary[Testing &amp; Quality](/categories/testing)

thomyl/laravel-auto-test-generator
==================================

Laravel &gt;=6 package for generating unit test automatically

41.2k↓74.7%1[1 issues](https://github.com/ThomyLorenzatti/laravel-auto-test-generator/issues)PHP

Since Jan 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ThomyLorenzatti/laravel-auto-test-generator)[ Packagist](https://packagist.org/packages/thomyl/laravel-auto-test-generator)[ RSS](/packages/thomyl-laravel-auto-test-generator/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Auto Test Generator
===========================

[](#laravel-auto-test-generator)

Auto Test Generator package for routes in Laravel 6 and above. With just a few simple commands, this package will automatically generate unit test files for all of the routes

in your Laravel application. No more manual testing or time-consuming set up. This package ensures that your routes are thoroughly tested and ready for deployment.

Installation
============

[](#installation)

Simply run the command `composer require thomyl/laravel-test-generator` in the root directory of your project. This will add the package to your project and make the

artisan command available for use, allowing you to easily generate unit test files for all of your application's routes.

Usage
=====

[](#usage)

Simply run the command `php artisan laravel-test:generate` in the root directory of your project to generate test cases for all of your application's routes, organized by

controller.

Additionally, you can filter for specific routes by passing a filter attribute using **--filter**, for example `php artisan laravel-test:generate --filter='/api'`.

If you prefer to change the directory in which the test file is created, you can specify a directory using **--dir**, for example `php artisan laravel-test:generate --dir='V1'`.

You can also run the test cases synchronously by passing sync attribute using **--sync**, for example `php artisan laravel-test:generate --sync='true'`, this will add the

@depends attribute to all the function except the first function. This will give you more control over the test execution order.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95230343?v=4)[ThomyL](/maintainers/ThomyL)[@Thomyl](https://github.com/Thomyl)

---

Top Contributors

[![ThomyLorenzatti](https://avatars.githubusercontent.com/u/71844488?v=4)](https://github.com/ThomyLorenzatti "ThomyLorenzatti (4 commits)")

### Embed Badge

![Health badge](/badges/thomyl-laravel-auto-test-generator/health.svg)

```
[![Health](https://phpackages.com/badges/thomyl-laravel-auto-test-generator/health.svg)](https://phpackages.com/packages/thomyl-laravel-auto-test-generator)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M360](/packages/dms-phpunit-arraysubset-asserts)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
