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

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

mrshk/laravel-test-generator
============================

Laravel package for generating unit test automatically

1.0.4(1y ago)011MITPHP

Since Jul 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ammarshaikh-coderkube/laravel-test-generator)[ Packagist](https://packagist.org/packages/mrshk/laravel-test-generator)[ RSS](/packages/mrshk-laravel-test-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)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 mrshk/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 `MrShk7\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

23

—

LowBetter than 27% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

665d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/343fb65583bc763dc428a81e29da7e8521862d6221f4ba6ddb80c3f26410f30d?d=identicon)[ammarshaikh-coderkube](/maintainers/ammarshaikh-coderkube)

---

Top Contributors

[![ammarshaikh-coderkube](https://avatars.githubusercontent.com/u/156744411?v=4)](https://github.com/ammarshaikh-coderkube "ammarshaikh-coderkube (8 commits)")

### Embed Badge

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

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

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

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

Workbench Companion for Laravel Packages Development

8017.0M43](/packages/orchestra-workbench)[vierge-noire/cakephp-fixture-factories

CakePHP Dynamic Fixtures

84858.8k9](/packages/vierge-noire-cakephp-fixture-factories)[jonpurvis/faker-stripe

Faker provider for generating fake Stripe IDs

8762.2k](/packages/jonpurvis-faker-stripe)[ergebnis/data-provider

Provides generic data providers for use with phpunit/phpunit.

281.3M32](/packages/ergebnis-data-provider)[atoum/atoum-bundle

Bundle around atoum unit testing framework

44360.9k10](/packages/atoum-atoum-bundle)

PHPackages © 2026

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