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

4965↓40.9%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 1mo 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 10% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity23

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

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M682](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M570](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)

PHPackages © 2026

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