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

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

domlip94/laravel-test-generator
===============================

Laravel package for generating unit test automatically

03PHP

Since Sep 26Pushed 2y agoCompare

[ Source](https://github.com/DomLip94/laravel-test-generator)[ Packagist](https://packagist.org/packages/domlip94/laravel-test-generator)[ RSS](/packages/domlip94-laravel-test-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 Bus Factor1

Top contributor holds 62.5% 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://www.gravatar.com/avatar/7ec73350d4313b81cfe946b5ef715f875bf9ff6e28e2f4f39dede1f0a28cfbac?d=identicon)[DomLip94](/maintainers/DomLip94)

---

Top Contributors

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

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/domlip94-laravel-test-generator/health.svg)](https://phpackages.com/packages/domlip94-laravel-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)
