PHPackages                             vigneshc91/laravel-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. vigneshc91/laravel-test-generator

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

vigneshc91/laravel-test-generator
=================================

Laravel package for generating unit test automatically

v0.0.5(5y ago)238.7k21[8 issues](https://github.com/vigneshc91/laravel-test-generator/issues)MITPHP

Since Jul 31Pushed 4y ago3 watchersCompare

[ Source](https://github.com/vigneshc91/laravel-test-generator)[ Packagist](https://packagist.org/packages/vigneshc91/laravel-test-generator)[ RSS](/packages/vigneshc91-laravel-test-generator/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (0)

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

[](#laravel-test-generator)

Auto generate the unit test file for the available routes

Installation
------------

[](#installation)

The package can easily be installed by running `composer require vigneshc91/laravel-test-generator` in your project's root folder.

If you are running a version of Laravel &lt; 5.5 also make sure you add `Vigneshc91\LaravelTestGenerator\TestGeneratorServiceProvider::class` to the `providers` array in `config/app.php`.

This will register the artisan command that will be available to you.

Usage
-----

[](#usage)

Generating the test file is easy, simply run `php artisan laravel-test:generate` in your project root. This will write all the test cases into the file based on controller.

If you wish to filter for specific routes only, you can pass a filter attribute using --filter, for example `php artisan laravel-test:generate --filter='/api'`

If you wish to change the directory of creating the test file, you can pass a directory using --dir, for example `php artisan laravel-test:generate --dir='V1'`

If you wish to add the @depends attribute to all the function except the first function for running test cases synchronously, you can pass a sync attribute using --sync, for example `php artisan laravel-test:generate --sync='true'`

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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.

###  Release Activity

Cadence

Every ~207 days

Total

5

Last Release

2059d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12927343?v=4)[Vignesh Palaniappan ](/maintainers/vignesh)[@vignesh](https://github.com/vignesh)

---

Top Contributors

[![vigneshc91](https://avatars.githubusercontent.com/u/2412864?v=4)](https://github.com/vigneshc91 "vigneshc91 (5 commits)")[![opiy-org](https://avatars.githubusercontent.com/u/10293975?v=4)](https://github.com/opiy-org "opiy-org (1 commits)")

---

Tags

laravellaravel-testlaravel-test-generatorlaravel-unit-test

### Embed Badge

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

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

###  Alternatives

[laracasts/testdummy

Easy test stubs

4561.4M38](/packages/laracasts-testdummy)[sizuhiko/fabricate

PHP data generator for Testing

64632.5k2](/packages/sizuhiko-fabricate)[silverstripe/frameworktest

Aids core and module developers in testing their code against a set of sample data and behaviour.

17311.4k33](/packages/silverstripe-frameworktest)

PHPackages © 2026

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